1 override of DisplayStyle
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (1)
39public override ToolStripItemDisplayStyle DisplayStyle
90 writes to DisplayStyle
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 (21)
System\Windows\Forms\Controls\PropertyGrid\PropertyGrid.cs (1)
1719DisplayStyle = ToolStripItemDisplayStyle.Image,
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
163set => base.DisplayStyle = value;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
155DisplayStyle = DefaultDisplayStyle; 3371public virtual void ResetDisplayStyle() => DisplayStyle = DefaultDisplayStyle;
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
502menuItem.DisplayStyle = DisplayStyle;
System\Windows\Forms\Controls\ToolStrips\ToolStripSeparator.cs (1)
90set => base.DisplayStyle = value;
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 (1)
System\Windows\Forms\Design\ToolStripTemplateNode.cs (1)
1406_addItemButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
System.Windows.Forms.Tests (37)
System\Windows\Forms\ToolStripButtonTests.cs (3)
1276DisplayStyle = displayStyle, 1367DisplayStyle = displayStyle, 1466DisplayStyle = displayStyle,
System\Windows\Forms\ToolStripItemTests.cs (33)
2117DisplayStyle = value 2122item.DisplayStyle = value; 2151item.DisplayStyle = value; 2157item.DisplayStyle = value; 2199item.DisplayStyle = value; 2208item.DisplayStyle = value; 2235item.DisplayStyle = value; 2241item.DisplayStyle = value; 2266item.DisplayStyle = value; 2275item.DisplayStyle = value; 2298item.DisplayStyle = ToolStripItemDisplayStyle.Text; 2303item.DisplayStyle = ToolStripItemDisplayStyle.Text; 2308item.DisplayStyle = ToolStripItemDisplayStyle.None; 2314item.DisplayStyle = ToolStripItemDisplayStyle.Text; 2323Assert.Throws<InvalidEnumArgumentException>("value", () => item.DisplayStyle = value); 2333item.DisplayStyle = ToolStripItemDisplayStyle.Text; 2349item.DisplayStyle = ToolStripItemDisplayStyle.Text; 2977DisplayStyle = displayStyle 3009DisplayStyle = displayStyle 3050DisplayStyle = displayStyle 3103DisplayStyle = displayStyle 3137DisplayStyle = displayStyle 11336DisplayStyle = displayStyle 11365DisplayStyle = displayStyle 11403DisplayStyle = displayStyle 11454DisplayStyle = displayStyle 11485DisplayStyle = displayStyle 12254DisplayStyle = displayStyle 12275DisplayStyle = displayStyle 12321DisplayStyle = displayStyle 12386DisplayStyle = displayStyle 12423DisplayStyle = displayStyle 14105item.DisplayStyle = ToolStripItemDisplayStyle.Text;
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
282DisplayStyle = ToolStripItemDisplayStyle.Image,
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;
68 references to DisplayStyle
System.Windows.Forms (28)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
2544if (((DisplayedItems[j].DisplayStyle & ToolStripItemDisplayStyle.Text) == ToolStripItemDisplayStyle.Text)) 2899if ((currentItem.DisplayStyle & ToolStripItemDisplayStyle.Text) != ToolStripItemDisplayStyle.Text) 2963if ((currentItem.DisplayStyle & ToolStripItemDisplayStyle.Text) != ToolStripItemDisplayStyle.Text)
System\Windows\Forms\Controls\ToolStrips\ToolStripButton.cs (2)
210if ((DisplayStyle & ToolStripItemDisplayStyle.Image) == ToolStripItemDisplayStyle.Image) 219if ((DisplayStyle & ToolStripItemDisplayStyle.Text) == ToolStripItemDisplayStyle.Text)
System\Windows\Forms\Controls\ToolStrips\ToolStripControlHost.cs (1)
162get => base.DisplayStyle;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (2)
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 (3)
1551if ((DisplayStyle & ToolStripItemDisplayStyle.Image) != ToolStripItemDisplayStyle.Image) 2813if ((DisplayStyle & ToolStripItemDisplayStyle.Text) == ToolStripItemDisplayStyle.Text) 3290private bool ShouldSerializeDisplayStyle() => DisplayStyle != DefaultDisplayStyle;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.ToolStripItemInternalLayout.cs (1)
110layoutOptions.Text = ((Owner.DisplayStyle & ToolStripItemDisplayStyle.Text) == ToolStripItemDisplayStyle.Text) ? Owner.Text : string.Empty;
System\Windows\Forms\Controls\ToolStrips\ToolStripLabel.cs (2)
340if ((DisplayStyle & ToolStripItemDisplayStyle.Image) == ToolStripItemDisplayStyle.Image) 353if ((DisplayStyle & ToolStripItemDisplayStyle.Text) == ToolStripItemDisplayStyle.Text)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (5)
502menuItem.DisplayStyle = DisplayStyle; 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)
89get => base.DisplayStyle;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.cs (2)
521if ((DisplayStyle & ToolStripItemDisplayStyle.Image) != ToolStripItemDisplayStyle.None) 526if ((DisplayStyle & ToolStripItemDisplayStyle.Text) != ToolStripItemDisplayStyle.None)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonButton.cs (3)
43return _owner.DisplayStyle; 75if ((_owner.DisplayStyle & ToolStripItemDisplayStyle.Image) == ToolStripItemDisplayStyle.Image) 107if ((_owner.DisplayStyle & ToolStripItemDisplayStyle.Text) == ToolStripItemDisplayStyle.Text)
System\Windows\Forms\Controls\ToolStrips\ToolStripStatusLabel.cs (1)
200if ((DisplayStyle & ToolStripItemDisplayStyle.Image) == ToolStripItemDisplayStyle.Image)
System.Windows.Forms.Tests (40)
BindingNavigatorTests.cs (1)
106Assert.Equal(ToolStripItemDisplayStyle.Image, item.DisplayStyle);
System\Windows\Forms\ToolStripButtonTests.cs (6)
48Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle); 129Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle); 216Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle); 306Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle); 394Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle); 492Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
44Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle); 133Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle); 232Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle); 332Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle);
System\Windows\Forms\ToolStripItemTests.cs (26)
47Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle); 132Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle); 227Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle); 2103Assert.Equal(ToolStripItemDisplayStyle.Text, item.DisplayStyle); 2119Assert.Equal(value, item.DisplayStyle); 2123Assert.Equal(value, item.DisplayStyle); 2152Assert.Equal(value, item.DisplayStyle); 2158Assert.Equal(value, item.DisplayStyle); 2200Assert.Equal(value, item.DisplayStyle); 2209Assert.Equal(value, item.DisplayStyle); 2236Assert.Equal(value, item.DisplayStyle); 2242Assert.Equal(value, item.DisplayStyle); 2267Assert.Equal(value, item.DisplayStyle); 2276Assert.Equal(value, item.DisplayStyle); 2299Assert.Equal(ToolStripItemDisplayStyle.Text, item.DisplayStyle); 2304Assert.Equal(ToolStripItemDisplayStyle.Text, item.DisplayStyle); 2309Assert.Equal(ToolStripItemDisplayStyle.None, item.DisplayStyle); 2329PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.DisplayStyle)]; 2334Assert.Equal(ToolStripItemDisplayStyle.Text, item.DisplayStyle); 2338Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle); 2345PropertyDescriptor property = TypeDescriptor.GetProperties(typeof(ToolStripItem))[nameof(ToolStripItem.DisplayStyle)]; 2350Assert.Equal(ToolStripItemDisplayStyle.Text, item.DisplayStyle); 2354Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle); 14102Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle); 14107Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle); 14111Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle);
System\Windows\Forms\ToolStripMenuItemTests.cs (3)
45Assert.Equal(ToolStripItemDisplayStyle.ImageAndText, item.DisplayStyle); 327clone.DisplayStyle.Should().Be(original.DisplayStyle);