24 references to AsNeeded
System.Windows.Forms (5)
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (2)
34private ToolStripItemOverflow _overflow = ToolStripItemOverflow.AsNeeded; 1485[DefaultValue(ToolStripItemOverflow.AsNeeded)]
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (3)
276if (!needOverflow && (item.Overflow == ToolStripItemOverflow.AsNeeded && item.Placement == ToolStripItemPlacement.Overflow)) 418if (!needOverflow && (item.Overflow == ToolStripItemOverflow.AsNeeded && item.Placement == ToolStripItemPlacement.Overflow)) 581if (item.Overflow == ToolStripItemOverflow.AsNeeded && item.Placement != ToolStripItemPlacement.Overflow)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
1098private void ResetOverflow() => ToolStripItem.Overflow = ToolStripItemOverflow.AsNeeded;
System.Windows.Forms.Tests (18)
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (1)
956Overflow = ToolStripItemOverflow.AsNeeded
System\Windows\Forms\ToolStripButtonTests.cs (6)
74Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 155Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 242Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 332Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 420Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 518Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
103Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
74Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 163Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 262Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 370Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow);
System\Windows\Forms\ToolStripItemTests.cs (5)
73Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 158Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 253Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 6247[InlineData(ToolStripItemOverflow.AsNeeded, ToolStripItemPlacement.None, 0)] 6292[InlineData(ToolStripItemOverflow.AsNeeded, ToolStripItemPlacement.None, 0)]
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
71Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow);