24 references to AsNeeded
System.Windows.Forms (5)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
34
private ToolStripItemOverflow _overflow = ToolStripItemOverflow.
AsNeeded
;
1485
[DefaultValue(ToolStripItemOverflow.
AsNeeded
)]
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (3)
276
if (!needOverflow && (item.Overflow == ToolStripItemOverflow.
AsNeeded
&& item.Placement == ToolStripItemPlacement.Overflow))
418
if (!needOverflow && (item.Overflow == ToolStripItemOverflow.
AsNeeded
&& item.Placement == ToolStripItemPlacement.Overflow))
581
if (item.Overflow == ToolStripItemOverflow.
AsNeeded
&& item.Placement != ToolStripItemPlacement.Overflow)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
1098
private void ResetOverflow() => ToolStripItem.Overflow = ToolStripItemOverflow.
AsNeeded
;
System.Windows.Forms.Tests (18)
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (1)
954
Overflow = ToolStripItemOverflow.
AsNeeded
System\Windows\Forms\ToolStripButtonTests.cs (6)
72
Assert.Equal(ToolStripItemOverflow.
AsNeeded
, item.Overflow);
153
Assert.Equal(ToolStripItemOverflow.
AsNeeded
, item.Overflow);
240
Assert.Equal(ToolStripItemOverflow.
AsNeeded
, item.Overflow);
330
Assert.Equal(ToolStripItemOverflow.
AsNeeded
, item.Overflow);
418
Assert.Equal(ToolStripItemOverflow.
AsNeeded
, item.Overflow);
516
Assert.Equal(ToolStripItemOverflow.
AsNeeded
, item.Overflow);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
101
Assert.Equal(ToolStripItemOverflow.
AsNeeded
, item.Overflow);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
72
Assert.Equal(ToolStripItemOverflow.
AsNeeded
, item.Overflow);
161
Assert.Equal(ToolStripItemOverflow.
AsNeeded
, item.Overflow);
260
Assert.Equal(ToolStripItemOverflow.
AsNeeded
, item.Overflow);
368
Assert.Equal(ToolStripItemOverflow.
AsNeeded
, item.Overflow);
System\Windows\Forms\ToolStripItemTests.cs (5)
71
Assert.Equal(ToolStripItemOverflow.
AsNeeded
, item.Overflow);
156
Assert.Equal(ToolStripItemOverflow.
AsNeeded
, item.Overflow);
251
Assert.Equal(ToolStripItemOverflow.
AsNeeded
, item.Overflow);
6245
[InlineData(ToolStripItemOverflow.
AsNeeded
, ToolStripItemPlacement.None, 0)]
6290
[InlineData(ToolStripItemOverflow.
AsNeeded
, ToolStripItemPlacement.None, 0)]
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
69
Assert.Equal(ToolStripItemOverflow.
AsNeeded
, item.Overflow);