48 references to ImageAndText
System.Windows.Forms (2)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
50
private ToolStripItemDisplayStyle _displayStyle = ToolStripItemDisplayStyle.
ImageAndText
;
685
protected virtual ToolStripItemDisplayStyle DefaultDisplayStyle => ToolStripItemDisplayStyle.
ImageAndText
;
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (2)
157
_imageTextStyleToolStripMenuItem = CreateEnumValueItem("DisplayStyle", "ImageAndText", ToolStripItemDisplayStyle.
ImageAndText
);
631
_imageTextStyleToolStripMenuItem.Checked = currentDisplayStyleValue == ToolStripItemDisplayStyle.
ImageAndText
;
System.Windows.Forms.Tests (43)
System\Windows\Forms\ToolStripButtonTests.cs (13)
42
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DefaultDisplayStyle);
48
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
123
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DefaultDisplayStyle);
129
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
210
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DefaultDisplayStyle);
216
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
300
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DefaultDisplayStyle);
306
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
388
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DefaultDisplayStyle);
394
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
486
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DefaultDisplayStyle);
492
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
1227
yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.No, ToolStripItemDisplayStyle.
ImageAndText
, 1, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
System\Windows\Forms\ToolStripControlHostTests.cs (2)
72
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DefaultDisplayStyle);
78
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
System\Windows\Forms\ToolStripDropDownItemTests.cs (8)
38
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DefaultDisplayStyle);
44
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
127
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DefaultDisplayStyle);
133
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
226
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DefaultDisplayStyle);
232
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
326
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DefaultDisplayStyle);
332
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
System\Windows\Forms\ToolStripItemTests.cs (16)
41
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DefaultDisplayStyle);
47
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
126
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DefaultDisplayStyle);
132
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
221
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DefaultDisplayStyle);
227
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
2130
[InlineData(ToolStripItemDisplayStyle.
ImageAndText
, 0)]
2171
[InlineData(ToolStripItemDisplayStyle.
ImageAndText
, 0)]
2338
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
2354
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
2998
yield return new object[] { ToolStripItemDisplayStyle.
ImageAndText
, new Font("Arial", 8.25f), 1 };
11372
yield return new object[] { ToolStripItemDisplayStyle.
ImageAndText
, null, 1 };
11373
yield return new object[] { ToolStripItemDisplayStyle.
ImageAndText
, new EventArgs(), 1 };
14121
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
14126
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
14130
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
System\Windows\Forms\ToolStripMenuItemTests.cs (2)
39
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DefaultDisplayStyle);
45
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
System\Windows\Forms\ToolStripSeparatorTests.cs (2)
39
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DefaultDisplayStyle);
45
Assert.Equal(ToolStripItemDisplayStyle.
ImageAndText
, item.DisplayStyle);
WinFormsControlsTest (1)
ToolStripTests.cs (1)
21
toolStrip2_Button4.DisplayStyle = ToolStripItemDisplayStyle.
ImageAndText
;