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)
954Overflow = ToolStripItemOverflow.AsNeeded
System\Windows\Forms\ToolStripButtonTests.cs (6)
72Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 153Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 240Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 330Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 418Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 516Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow);
System\Windows\Forms\ToolStripControlHostTests.cs (1)
101Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow);
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
72Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 161Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 260Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 368Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow);
System\Windows\Forms\ToolStripItemTests.cs (5)
71Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 156Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 251Assert.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)
69Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow);