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