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