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