292 references to ToolStripItemDisplayStyle
Accessibility_Core_App (26)
DataControls.Designer.cs (6)
112
this.bindingNavigatorAddNewItem.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
129
this.bindingNavigatorDeleteItem.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
138
this.bindingNavigatorMoveFirstItem.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
147
this.bindingNavigatorMovePreviousItem.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
175
this.bindingNavigatorMoveNextItem.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
184
this.bindingNavigatorMoveLastItem.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
Menu_Toolbars_controls.Designer.cs (8)
433
toolStripDropDownButton1.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
459
toolStripSplitButton1.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
527
toolStripButton1.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
537
toolStripButton2.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
549
toolStripButton3.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
560
toolStripButton4.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
572
toolStripButton5.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
583
toolStripButton6.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
ToolStripContainer.Designer.cs (12)
152
this.toolStripButton1.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
161
this.toolStripSplitButton1.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
178
this.newToolStripButton.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
187
this.openToolStripButton.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
196
this.saveToolStripButton.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
205
this.printToolStripButton.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
219
this.cutToolStripButton.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
228
this.copyToolStripButton.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
237
this.pasteToolStripButton.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
251
this.helpToolStripButton.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
290
this.toolStripDropDownButton1.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
307
this.toolStripSplitButton2.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Image;
System.Windows.Forms (68)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1719
DisplayStyle =
ToolStripItemDisplayStyle
.Image,
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (6)
2546
if (((DisplayedItems[j].DisplayStyle &
ToolStripItemDisplayStyle
.Text) ==
ToolStripItemDisplayStyle
.Text))
2901
if ((currentItem.DisplayStyle &
ToolStripItemDisplayStyle
.Text) !=
ToolStripItemDisplayStyle
.Text)
2965
if ((currentItem.DisplayStyle &
ToolStripItemDisplayStyle
.Text) !=
ToolStripItemDisplayStyle
.Text)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (4)
210
if ((DisplayStyle &
ToolStripItemDisplayStyle
.Image) ==
ToolStripItemDisplayStyle
.Image)
219
if ((DisplayStyle &
ToolStripItemDisplayStyle
.Text) ==
ToolStripItemDisplayStyle
.Text)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
160
public new
ToolStripItemDisplayStyle
DisplayStyle
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (4)
186
if ((DisplayStyle &
ToolStripItemDisplayStyle
.Image) ==
ToolStripItemDisplayStyle
.Image)
191
if ((DisplayStyle &
ToolStripItemDisplayStyle
.Text) ==
ToolStripItemDisplayStyle
.Text)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (2)
238
&& ((ToolStripButton)e.Item).DisplayStyle !=
ToolStripItemDisplayStyle
.Image
241
&& ((ToolStripMenuItem)e.Item).DisplayStyle !=
ToolStripItemDisplayStyle
.Image
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (9)
50
private
ToolStripItemDisplayStyle
_displayStyle =
ToolStripItemDisplayStyle
.ImageAndText;
685
protected virtual
ToolStripItemDisplayStyle
DefaultDisplayStyle =>
ToolStripItemDisplayStyle
.ImageAndText;
698
public virtual
ToolStripItemDisplayStyle
DisplayStyle
1551
if ((DisplayStyle &
ToolStripItemDisplayStyle
.Image) !=
ToolStripItemDisplayStyle
.Image)
2821
if ((DisplayStyle &
ToolStripItemDisplayStyle
.Text) ==
ToolStripItemDisplayStyle
.Text)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (2)
110
layoutOptions.Text = ((Owner.DisplayStyle &
ToolStripItemDisplayStyle
.Text) ==
ToolStripItemDisplayStyle
.Text) ? Owner.Text : string.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (4)
340
if ((DisplayStyle &
ToolStripItemDisplayStyle
.Image) ==
ToolStripItemDisplayStyle
.Image)
353
if ((DisplayStyle &
ToolStripItemDisplayStyle
.Text) ==
ToolStripItemDisplayStyle
.Text)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (8)
991
if ((DisplayStyle &
ToolStripItemDisplayStyle
.Text) ==
ToolStripItemDisplayStyle
.Text)
1015
if (menuItemInternalLayout.PaintImage && (DisplayStyle &
ToolStripItemDisplayStyle
.Image) ==
ToolStripItemDisplayStyle
.Image && Image is not null)
1023
if ((DisplayStyle &
ToolStripItemDisplayStyle
.Text) ==
ToolStripItemDisplayStyle
.Text)
1028
if ((DisplayStyle &
ToolStripItemDisplayStyle
.Image) ==
ToolStripItemDisplayStyle
.Image && Image is not null)
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
87
public new
ToolStripItemDisplayStyle
DisplayStyle
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (4)
521
if ((DisplayStyle &
ToolStripItemDisplayStyle
.Image) !=
ToolStripItemDisplayStyle
.None)
526
if ((DisplayStyle &
ToolStripItemDisplayStyle
.Text) !=
ToolStripItemDisplayStyle
.None)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (5)
39
public override
ToolStripItemDisplayStyle
DisplayStyle
75
if ((_owner.DisplayStyle &
ToolStripItemDisplayStyle
.Image) ==
ToolStripItemDisplayStyle
.Image)
107
if ((_owner.DisplayStyle &
ToolStripItemDisplayStyle
.Text) ==
ToolStripItemDisplayStyle
.Text)
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (2)
200
if ((DisplayStyle &
ToolStripItemDisplayStyle
.Image) ==
ToolStripItemDisplayStyle
.Image)
System\Windows\Forms\DataBinding\BindingNavigator.cs (6)
202
MoveFirstItem.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
203
MovePreviousItem.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
204
MoveNextItem.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
205
MoveLastItem.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
206
AddNewItem.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
207
DeleteItem.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
50
item.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
System\Windows\Forms\Printing\PrintPreviewDialog.cs (8)
802
_printToolStripButton.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
806
_zoomToolStripSplitButton.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
871
_onePageToolStripButton.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
875
_twoPagesToolStripButton.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
879
_threePagesToolStripButton.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
883
_fourPagesToolStripButton.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
887
_sixPagesToolStripButton.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
893
_closeToolStripButton.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
System.Windows.Forms.Design (16)
System\Windows\Forms\Design\StandardMenuStripVerb.cs (1)
327
displayStyleProperty?.SetValue(item,
ToolStripItemDisplayStyle
.Image);
System\Windows\Forms\Design\TemplateNodeCustomMenuItemCollection.cs (1)
103
dispProperty?.SetValue(component,
ToolStripItemDisplayStyle
.Image);
System\Windows\Forms\Design\ToolStripDesigner.cs (1)
631
dispProperty?.SetValue(item,
ToolStripItemDisplayStyle
.Image);
System\Windows\Forms\Design\ToolStripItemCustomMenuItemCollection.cs (11)
154
_noneStyleToolStripMenuItem = CreateEnumValueItem("DisplayStyle", "None",
ToolStripItemDisplayStyle
.None);
155
_textStyleToolStripMenuItem = CreateEnumValueItem("DisplayStyle", "Text",
ToolStripItemDisplayStyle
.Text);
156
_imageStyleToolStripMenuItem = CreateEnumValueItem("DisplayStyle", "Image",
ToolStripItemDisplayStyle
.Image);
157
_imageTextStyleToolStripMenuItem = CreateEnumValueItem("DisplayStyle", "ImageAndText",
ToolStripItemDisplayStyle
.ImageAndText);
540
ChangeProperty(component, "DisplayStyle",
ToolStripItemDisplayStyle
.Image);
627
ToolStripItemDisplayStyle
currentDisplayStyleValue = (
ToolStripItemDisplayStyle
)GetProperty("DisplayStyle");
628
_noneStyleToolStripMenuItem.Checked = currentDisplayStyleValue ==
ToolStripItemDisplayStyle
.None;
629
_textStyleToolStripMenuItem.Checked = currentDisplayStyleValue ==
ToolStripItemDisplayStyle
.Text;
630
_imageStyleToolStripMenuItem.Checked = currentDisplayStyleValue ==
ToolStripItemDisplayStyle
.Image;
631
_imageTextStyleToolStripMenuItem.Checked = currentDisplayStyleValue ==
ToolStripItemDisplayStyle
.ImageAndText;
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
833
dispProperty?.SetValue(newItem,
ToolStripItemDisplayStyle
.Image);
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1406
_addItemButton.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
System.Windows.Forms.Tests (177)
BindingNavigatorTests.cs (1)
106
Assert.Equal(
ToolStripItemDisplayStyle
.Image, item.DisplayStyle);
System\Windows\Forms\ToolStripButtonTests.cs (48)
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);
1225
yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.No,
ToolStripItemDisplayStyle
.None, 0, 0, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1226
yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.No,
ToolStripItemDisplayStyle
.Image, 1, 0, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1227
yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.No,
ToolStripItemDisplayStyle
.ImageAndText, 1, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1229
yield return new object[] { ContentAlignment.TopLeft, RightToLeft.Yes,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1230
yield return new object[] { ContentAlignment.TopLeft, RightToLeft.Inherit,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Top | TextFormatFlags.HidePrefix };
1231
yield return new object[] { ContentAlignment.TopLeft, RightToLeft.No,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Top | TextFormatFlags.HidePrefix };
1232
yield return new object[] { ContentAlignment.TopCenter, RightToLeft.Yes,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1233
yield return new object[] { ContentAlignment.TopCenter, RightToLeft.Inherit,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Top | TextFormatFlags.HidePrefix };
1234
yield return new object[] { ContentAlignment.TopCenter, RightToLeft.No,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Top | TextFormatFlags.HidePrefix };
1235
yield return new object[] { ContentAlignment.TopRight, RightToLeft.Yes,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Top | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1236
yield return new object[] { ContentAlignment.TopRight, RightToLeft.Inherit,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Top | TextFormatFlags.HidePrefix };
1237
yield return new object[] { ContentAlignment.TopRight, RightToLeft.No,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Top | TextFormatFlags.HidePrefix };
1239
yield return new object[] { ContentAlignment.MiddleLeft, RightToLeft.Yes,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1240
yield return new object[] { ContentAlignment.MiddleLeft, RightToLeft.Inherit,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1241
yield return new object[] { ContentAlignment.MiddleLeft, RightToLeft.No,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1242
yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.Yes,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1243
yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.Inherit,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1244
yield return new object[] { ContentAlignment.MiddleCenter, RightToLeft.No,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1245
yield return new object[] { ContentAlignment.MiddleRight, RightToLeft.Yes,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1246
yield return new object[] { ContentAlignment.MiddleRight, RightToLeft.Inherit,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1247
yield return new object[] { ContentAlignment.MiddleRight, RightToLeft.No,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.VerticalCenter | TextFormatFlags.HidePrefix };
1249
yield return new object[] { ContentAlignment.BottomLeft, RightToLeft.Yes,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1250
yield return new object[] { ContentAlignment.BottomLeft, RightToLeft.Inherit,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix };
1251
yield return new object[] { ContentAlignment.BottomLeft, RightToLeft.No,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Left | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix };
1252
yield return new object[] { ContentAlignment.BottomCenter, RightToLeft.Yes,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1253
yield return new object[] { ContentAlignment.BottomCenter, RightToLeft.Inherit,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix };
1254
yield return new object[] { ContentAlignment.BottomCenter, RightToLeft.No,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.HorizontalCenter | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix };
1255
yield return new object[] { ContentAlignment.BottomRight, RightToLeft.Yes,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix | TextFormatFlags.RightToLeft };
1256
yield return new object[] { ContentAlignment.BottomRight, RightToLeft.Inherit,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix };
1257
yield return new object[] { ContentAlignment.BottomRight, RightToLeft.No,
ToolStripItemDisplayStyle
.Text, 0, 1, TextFormatFlags.Right | TextFormatFlags.Bottom | TextFormatFlags.HidePrefix };
1262
public void ToolStripButton_OnPaint_InvokeWithOwner_DoesNotCallPaint(ContentAlignment textAlign, RightToLeft rightToLeft,
ToolStripItemDisplayStyle
displayStyle, int expectedRenderItemImageCallCount, int expectedRenderItemTextCallCount, TextFormatFlags expectedTextFormat)
1353
public void ToolStripButton_OnPaint_InvokeWithOwnerCantShowKeyboardCues_DoesNotCallPaint(ContentAlignment textAlign, RightToLeft rightToLeft,
ToolStripItemDisplayStyle
displayStyle, int expectedRenderItemImageCallCount, int expectedRenderItemTextCallCount, TextFormatFlags expectedTextFormat)
1444
foreach (
ToolStripItemDisplayStyle
displayStyle in Enum.GetValues(typeof(
ToolStripItemDisplayStyle
)))
1456
public void ToolStripButton_OnPaint_InvokeWithParent_DoesNotCallPaint(
ToolStripItemDisplayStyle
displayStyle, PaintEventArgs eventArgs)
1724
public new
ToolStripItemDisplayStyle
DefaultDisplayStyle => base.DefaultDisplayStyle;
System\Windows\Forms\ToolStripControlHostTests.cs (16)
72
Assert.Equal(
ToolStripItemDisplayStyle
.ImageAndText, item.DefaultDisplayStyle);
78
Assert.Equal(
ToolStripItemDisplayStyle
.ImageAndText, item.DisplayStyle);
759
[EnumData<
ToolStripItemDisplayStyle
>]
760
public void ToolStripControlHost_DisplayStyle_Set_GetReturnsExpected(
ToolStripItemDisplayStyle
value)
791
item.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
792
Assert.Equal(
ToolStripItemDisplayStyle
.Text, item.DisplayStyle);
796
item.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
797
Assert.Equal(
ToolStripItemDisplayStyle
.Text, item.DisplayStyle);
801
item.DisplayStyle =
ToolStripItemDisplayStyle
.None;
802
Assert.Equal(
ToolStripItemDisplayStyle
.None, item.DisplayStyle);
807
item.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
812
[InvalidEnumData<
ToolStripItemDisplayStyle
>]
813
public void ToolStripControlHost_DisplayStyle_SetInvalid_ThrowsInvalidEnumArgumentException(
ToolStripItemDisplayStyle
value)
955
foreach (Enum displayStyle in Enum.GetValues(typeof(
ToolStripItemDisplayStyle
)))
964
public void ToolStripControlHost_Font_Set_GetReturnsExpected(
ToolStripItemDisplayStyle
displayStyle, Font value)
4643
public new
ToolStripItemDisplayStyle
DefaultDisplayStyle => base.DefaultDisplayStyle;
System\Windows\Forms\ToolStripDropDownItemTests.cs (9)
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);
513
public new
ToolStripItemDisplayStyle
DefaultDisplayStyle => base.DefaultDisplayStyle;
System\Windows\Forms\ToolStripItemTests.cs (76)
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);
2103
Assert.Equal(
ToolStripItemDisplayStyle
.Text, item.DisplayStyle);
2108
protected override
ToolStripItemDisplayStyle
DefaultDisplayStyle =>
ToolStripItemDisplayStyle
.Text;
2112
[EnumData<
ToolStripItemDisplayStyle
>]
2113
public void ToolStripItem_DisplayStyle_Set_GetReturnsExpected(
ToolStripItemDisplayStyle
value)
2127
[InlineData(
ToolStripItemDisplayStyle
.None, 1)]
2128
[InlineData(
ToolStripItemDisplayStyle
.Text, 1)]
2129
[InlineData(
ToolStripItemDisplayStyle
.Image, 1)]
2130
[InlineData(
ToolStripItemDisplayStyle
.ImageAndText, 0)]
2131
public void ToolStripItem_DisplayStyle_SetWithOwner_GetReturnsExpected(
ToolStripItemDisplayStyle
value, int expectedOwnerLayoutCallCount)
2168
[InlineData(
ToolStripItemDisplayStyle
.None, 1)]
2169
[InlineData(
ToolStripItemDisplayStyle
.Text, 1)]
2170
[InlineData(
ToolStripItemDisplayStyle
.Image, 1)]
2171
[InlineData(
ToolStripItemDisplayStyle
.ImageAndText, 0)]
2172
public void ToolStripItem_DisplayStyle_SetWithOwnerWithHandle_GetReturnsExpected(
ToolStripItemDisplayStyle
value, int expectedOwnerLayoutCallCount)
2223
[EnumData<
ToolStripItemDisplayStyle
>]
2224
public void ToolStripItem_DisplayStyle_SetWithParent_GetReturnsExpected(
ToolStripItemDisplayStyle
value)
2247
[EnumData<
ToolStripItemDisplayStyle
>]
2248
public void ToolStripItem_DisplayStyle_SetWithParentWithHandle_GetReturnsExpected(
ToolStripItemDisplayStyle
value)
2298
item.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
2299
Assert.Equal(
ToolStripItemDisplayStyle
.Text, item.DisplayStyle);
2303
item.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
2304
Assert.Equal(
ToolStripItemDisplayStyle
.Text, item.DisplayStyle);
2308
item.DisplayStyle =
ToolStripItemDisplayStyle
.None;
2309
Assert.Equal(
ToolStripItemDisplayStyle
.None, item.DisplayStyle);
2314
item.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
2319
[InvalidEnumData<
ToolStripItemDisplayStyle
>]
2320
public void ToolStripItem_DisplayStyle_SetInvalid_ThrowsInvalidEnumArgumentException(
ToolStripItemDisplayStyle
value)
2333
item.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
2334
Assert.Equal(
ToolStripItemDisplayStyle
.Text, item.DisplayStyle);
2338
Assert.Equal(
ToolStripItemDisplayStyle
.ImageAndText, item.DisplayStyle);
2349
item.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
2350
Assert.Equal(
ToolStripItemDisplayStyle
.Text, item.DisplayStyle);
2354
Assert.Equal(
ToolStripItemDisplayStyle
.ImageAndText, item.DisplayStyle);
2964
foreach (Enum displayStyle in Enum.GetValues(typeof(
ToolStripItemDisplayStyle
)))
2973
public void ToolStripItem_Font_Set_GetReturnsExpected(
ToolStripItemDisplayStyle
displayStyle, Font value)
2990
foreach (Enum displayStyle in Enum.GetValues(typeof(
ToolStripItemDisplayStyle
)))
2995
yield return new object[] {
ToolStripItemDisplayStyle
.None, new Font("Arial", 8.25f), 0 };
2996
yield return new object[] {
ToolStripItemDisplayStyle
.Text, new Font("Arial", 8.25f), 1 };
2997
yield return new object[] {
ToolStripItemDisplayStyle
.Image, new Font("Arial", 8.25f), 0 };
2998
yield return new object[] {
ToolStripItemDisplayStyle
.ImageAndText, new Font("Arial", 8.25f), 1 };
3003
public void ToolStripItem_Font_SetWithOwner_GetReturnsExpected(
ToolStripItemDisplayStyle
displayStyle, Font value, int expectedOwnerLayoutCallCount)
3044
public void ToolStripItem_Font_SetWithOwnerWithHandle_GetReturnsExpected(
ToolStripItemDisplayStyle
displayStyle, Font value, int expectedOwnerLayoutCallCount)
3097
public void ToolStripItem_Font_SetWithParent_GetReturnsExpected(
ToolStripItemDisplayStyle
displayStyle, Font value)
3131
public void ToolStripItem_Font_SetWithParentWithHandle_GetReturnsExpected(
ToolStripItemDisplayStyle
displayStyle, Font value)
11342
foreach (
ToolStripItemDisplayStyle
displayStyle in Enum.GetValues(typeof(
ToolStripItemDisplayStyle
)))
11351
public void ToolStripItem_OnFontChanged_Invoke_Success(
ToolStripItemDisplayStyle
displayStyle, EventArgs eventArgs)
11366
yield return new object[] {
ToolStripItemDisplayStyle
.None, null, 0 };
11367
yield return new object[] {
ToolStripItemDisplayStyle
.None, new EventArgs(), 0 };
11368
yield return new object[] {
ToolStripItemDisplayStyle
.Text, null, 1 };
11369
yield return new object[] {
ToolStripItemDisplayStyle
.Text, new EventArgs(), 1 };
11370
yield return new object[] {
ToolStripItemDisplayStyle
.Image, null, 0 };
11371
yield return new object[] {
ToolStripItemDisplayStyle
.Image, new EventArgs(), 0 };
11372
yield return new object[] {
ToolStripItemDisplayStyle
.ImageAndText, null, 1 };
11373
yield return new object[] {
ToolStripItemDisplayStyle
.ImageAndText, new EventArgs(), 1 };
11378
public void ToolStripItem_OnFontChanged_InvokeWithOwner_Success(
ToolStripItemDisplayStyle
displayStyle, EventArgs eventArgs, int expectedOwnerLayoutCallCount)
11416
public void ToolStripItem_OnFontChanged_InvokeWithOwnerWithHandle_Success(
ToolStripItemDisplayStyle
displayStyle, EventArgs eventArgs, int expectedParentLayoutCallCount)
11467
public void ToolStripItem_OnFontChanged_InvokeWithParent_Success(
ToolStripItemDisplayStyle
displayStyle, EventArgs eventArgs)
11498
public void ToolStripItem_OnFontChanged_InvokeWithParentWithHandle_Success(
ToolStripItemDisplayStyle
displayStyle, EventArgs eventArgs)
12269
public void ToolStripItem_OnOwnerFontChanged_Invoke_Success(
ToolStripItemDisplayStyle
displayStyle, EventArgs eventArgs)
12288
public void ToolStripItem_OnOwnerFontChanged_InvokeWithOwner_Success(
ToolStripItemDisplayStyle
displayStyle, EventArgs eventArgs, int expectedOwnerLayoutCallCount)
12334
public void ToolStripItem_OnOwnerFontChanged_InvokeWithOwnerWithHandle_Success(
ToolStripItemDisplayStyle
displayStyle, EventArgs eventArgs, int expectedParentLayoutCallCount)
12399
public void ToolStripItem_OnOwnerFontChanged_InvokeWithParent_Success(
ToolStripItemDisplayStyle
displayStyle, EventArgs eventArgs)
12436
public void ToolStripItem_OnOwnerFontChanged_InvokeWithParentWithHandle_Success(
ToolStripItemDisplayStyle
displayStyle, EventArgs eventArgs)
14121
Assert.Equal(
ToolStripItemDisplayStyle
.ImageAndText, item.DisplayStyle);
14124
item.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
14126
Assert.Equal(
ToolStripItemDisplayStyle
.ImageAndText, item.DisplayStyle);
14130
Assert.Equal(
ToolStripItemDisplayStyle
.ImageAndText, item.DisplayStyle);
15520
public new
ToolStripItemDisplayStyle
DefaultDisplayStyle => base.DefaultDisplayStyle;
System\Windows\Forms\ToolStripMenuItemTests.cs (4)
39
Assert.Equal(
ToolStripItemDisplayStyle
.ImageAndText, item.DefaultDisplayStyle);
45
Assert.Equal(
ToolStripItemDisplayStyle
.ImageAndText, item.DisplayStyle);
282
DisplayStyle =
ToolStripItemDisplayStyle
.Image,
433
public new
ToolStripItemDisplayStyle
DefaultDisplayStyle => base.DefaultDisplayStyle;
System\Windows\Forms\ToolStripSeparatorTests.cs (23)
39
Assert.Equal(
ToolStripItemDisplayStyle
.ImageAndText, item.DefaultDisplayStyle);
45
Assert.Equal(
ToolStripItemDisplayStyle
.ImageAndText, item.DisplayStyle);
169
[EnumData<
ToolStripItemDisplayStyle
>]
170
public void ToolStripSeparator_DisplayStyle_Set_GetReturnsExpected(
ToolStripItemDisplayStyle
value)
197
item.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
198
Assert.Equal(
ToolStripItemDisplayStyle
.Text, item.DisplayStyle);
202
item.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
203
Assert.Equal(
ToolStripItemDisplayStyle
.Text, item.DisplayStyle);
207
item.DisplayStyle =
ToolStripItemDisplayStyle
.None;
208
Assert.Equal(
ToolStripItemDisplayStyle
.None, item.DisplayStyle);
213
item.DisplayStyle =
ToolStripItemDisplayStyle
.Text;
218
[InvalidEnumData<
ToolStripItemDisplayStyle
>]
219
public void ToolStripSeparator_DisplayStyle_SetInvalid_ThrowsInvalidEnumArgumentException(
ToolStripItemDisplayStyle
value)
309
foreach (Enum displayStyle in Enum.GetValues(typeof(
ToolStripItemDisplayStyle
)))
318
public void ToolStripSeparator_Font_Set_GetReturnsExpected(
ToolStripItemDisplayStyle
displayStyle, Font value)
915
foreach (
ToolStripItemDisplayStyle
displayStyle in Enum.GetValues(typeof(
ToolStripItemDisplayStyle
)))
924
public void ToolStripSeparator_OnFontChanged_Invoke_Success(
ToolStripItemDisplayStyle
displayStyle, EventArgs eventArgs)
939
public void ToolStripSeparator_OnFontChanged_InvokeWithOwner_Success(
ToolStripItemDisplayStyle
displayStyle, EventArgs eventArgs)
970
public void ToolStripSeparator_OnFontChanged_InvokeWithOwnerWithHandle_Success(
ToolStripItemDisplayStyle
displayStyle, EventArgs eventArgs)
1014
public void ToolStripSeparator_OnFontChanged_InvokeWithParent_Success(
ToolStripItemDisplayStyle
displayStyle, EventArgs eventArgs)
1045
public void ToolStripSeparator_OnFontChanged_InvokeWithParentWithHandle_Success(
ToolStripItemDisplayStyle
displayStyle, EventArgs eventArgs)
1635
public new
ToolStripItemDisplayStyle
DefaultDisplayStyle => base.DefaultDisplayStyle;
WinFormsControlsTest (5)
ToolStripTests.cs (2)
21
toolStrip2_Button4.DisplayStyle =
ToolStripItemDisplayStyle
.ImageAndText;
23
toolStrip2_Button5.DisplayStyle =
ToolStripItemDisplayStyle
.Image;
ToolStripTests.Designer.cs (3)
171
this.toolStrip2_Button1.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Text;
287
this.toolStrip2_SplitButton2.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Text;
348
this.toolStrip2_SplitButton1.DisplayStyle = System.Windows.Forms.
ToolStripItemDisplayStyle
.Text;