39 references to ImageBeforeText
System.Windows.Forms (11)
System\Windows\Forms\Controls\Buttons\ButtonInternal\ButtonBaseAdapter.LayoutOptions.cs (8)
316
case TextImageRelation.
ImageBeforeText
:
319
return TextImageRelation.
ImageBeforeText
;
452
/// and <see cref="TextImageRelation.
ImageBeforeText
"/>.
456
TextImageRelation.ImageAboveText | TextImageRelation.
ImageBeforeText
, // TopLeft
460
TextImageRelation.
ImageBeforeText
, // MiddleLeft
464
TextImageRelation.TextAboveImage | TextImageRelation.
ImageBeforeText
, // BottomLeft
575
if (textImageRelation is TextImageRelation.TextBeforeImage or TextImageRelation.
ImageBeforeText
)
595
if (textImageRelation == TextImageRelation.
ImageBeforeText
&& layout.ImageBounds.Size.Width != 0)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
38
private TextImageRelation _textImageRelation = TextImageRelation.
ImageBeforeText
;
1929
[DefaultValue(TextImageRelation.
ImageBeforeText
)]
System\Windows\Forms\Layout\LayoutUtils.cs (1)
473
return (relation & (TextImageRelation.TextBeforeImage | TextImageRelation.
ImageBeforeText
)) != 0;
System.Windows.Forms.Tests (28)
System\Windows\Forms\ButtonBaseTests.cs (10)
3533
yield return new object[] { true, TextImageRelation.
ImageBeforeText
, 1 };
3536
yield return new object[] { true, TextImageRelation.
ImageBeforeText
, 1 };
3539
yield return new object[] { false, TextImageRelation.
ImageBeforeText
, 0 };
3542
yield return new object[] { false, TextImageRelation.
ImageBeforeText
, 0 };
3596
yield return new object[] { autoSize, TextImageRelation.
ImageBeforeText
, 1 };
3599
yield return new object[] { autoSize, TextImageRelation.
ImageBeforeText
, 1 };
3642
yield return new object[] { true, TextImageRelation.
ImageBeforeText
, 1, 1 };
3645
yield return new object[] { true, TextImageRelation.
ImageBeforeText
, 1, 1 };
3648
yield return new object[] { false, TextImageRelation.
ImageBeforeText
, 0, 1 };
3651
yield return new object[] { false, TextImageRelation.
ImageBeforeText
, 0, 1 };
System\Windows\Forms\ToolStripButtonTests.cs (6)
88
Assert.Equal(TextImageRelation.
ImageBeforeText
, item.TextImageRelation);
169
Assert.Equal(TextImageRelation.
ImageBeforeText
, item.TextImageRelation);
256
Assert.Equal(TextImageRelation.
ImageBeforeText
, item.TextImageRelation);
346
Assert.Equal(TextImageRelation.
ImageBeforeText
, item.TextImageRelation);
434
Assert.Equal(TextImageRelation.
ImageBeforeText
, item.TextImageRelation);
532
Assert.Equal(TextImageRelation.
ImageBeforeText
, item.TextImageRelation);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
117
Assert.Equal(TextImageRelation.
ImageBeforeText
, item.TextImageRelation);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
88
Assert.Equal(TextImageRelation.
ImageBeforeText
, item.TextImageRelation);
177
Assert.Equal(TextImageRelation.
ImageBeforeText
, item.TextImageRelation);
276
Assert.Equal(TextImageRelation.
ImageBeforeText
, item.TextImageRelation);
384
Assert.Equal(TextImageRelation.
ImageBeforeText
, item.TextImageRelation);
System\Windows\Forms\ToolStripItemTests.cs (5)
87
Assert.Equal(TextImageRelation.
ImageBeforeText
, item.TextImageRelation);
172
Assert.Equal(TextImageRelation.
ImageBeforeText
, item.TextImageRelation);
267
Assert.Equal(TextImageRelation.
ImageBeforeText
, item.TextImageRelation);
8834
[InlineData(TextImageRelation.
ImageBeforeText
, 0)]
8877
[InlineData(TextImageRelation.
ImageBeforeText
, 0)]
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
97
Assert.Equal(TextImageRelation.
ImageBeforeText
, item.TextImageRelation);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
85
Assert.Equal(TextImageRelation.
ImageBeforeText
, item.TextImageRelation);