15 references to ImageAboveText
System.Windows.Forms (7)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (6)
451
/// For example, <see cref="ContentAlignment.TopLeft"/> maps to <see cref="TextImageRelation.
ImageAboveText
"/>
456
TextImageRelation.
ImageAboveText
| TextImageRelation.ImageBeforeText, // TopLeft
457
TextImageRelation.
ImageAboveText
, // TopCenter
458
TextImageRelation.
ImageAboveText
| TextImageRelation.TextBeforeImage, // TopRight
585
if (textImageRelation is TextImageRelation.TextAboveImage or TextImageRelation.
ImageAboveText
)
604
if (textImageRelation == TextImageRelation.
ImageAboveText
&& layout.ImageBounds.Size.Height != 0)
System\Windows\Forms\Layout\LayoutUtils.cs (1)
485
return (relation & (TextImageRelation.TextAboveImage | TextImageRelation.
ImageAboveText
)) != 0;
System.Windows.Forms.Tests (8)
System\Windows\Forms\ButtonBaseTests.cs (5)
3532
yield return new object[] { true, TextImageRelation.
ImageAboveText
, 1 };
3538
yield return new object[] { false, TextImageRelation.
ImageAboveText
, 0 };
3595
yield return new object[] { autoSize, TextImageRelation.
ImageAboveText
, 1 };
3641
yield return new object[] { true, TextImageRelation.
ImageAboveText
, 1, 1 };
3647
yield return new object[] { false, TextImageRelation.
ImageAboveText
, 0, 1 };
System\Windows\Forms\ToolStripItemTests.cs (2)
8836
[InlineData(TextImageRelation.
ImageAboveText
, 1)]
8879
[InlineData(TextImageRelation.
ImageAboveText
, 1)]
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
305
TextImageRelation = TextImageRelation.
ImageAboveText
,