18 writes to Overflow
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
789Overflow = ToolStripItemOverflow.Never, 1361Overflow = ToolStripItemOverflow.Never,
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
347set => base.Overflow = value;
System\Windows\Forms\MDI\MDIControlStrip.cs (1)
53item.Overflow = ToolStripItemOverflow.Never;
System.Windows.Forms.Design (3)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (3)
191ToolStripItem.Overflow = value; 1093private void RestoreOverflow() => ToolStripItem.Overflow = (ToolStripItemOverflow)ShadowProperties[nameof(Overflow)]; 1098private void ResetOverflow() => ToolStripItem.Overflow = ToolStripItemOverflow.AsNeeded;
System.Windows.Forms.Tests (11)
System\Windows\Forms\ToolStripItemTests.cs (11)
6231Overflow = value 6237item.Overflow = value; 6266item.Overflow = value; 6274item.Overflow = value; 6318item.Overflow = value; 6329item.Overflow = value; 6360item.Overflow = value; 6368item.Overflow = value; 6403item.Overflow = value; 6414item.Overflow = value; 6435Assert.Throws<InvalidEnumArgumentException>("value", () => item.Overflow = value);
37 references to Overflow
System.Windows.Forms (11)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
2288if (item.Overflow != ToolStripItemOverflow.Always) 2347if (item.Overflow != ToolStripItemOverflow.Always)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (1)
346get => base.Overflow;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (8)
78if (item.Overflow == ToolStripItemOverflow.Always) 83if (item.Overflow != ToolStripItemOverflow.Always && item.Placement == ToolStripItemPlacement.None) 128if (item.Overflow == ToolStripItemOverflow.Always) 133if (item.Overflow != ToolStripItemOverflow.Always && item.Placement == ToolStripItemPlacement.None) 276if (!needOverflow && (item.Overflow == ToolStripItemOverflow.AsNeeded && item.Placement == ToolStripItemPlacement.Overflow)) 418if (!needOverflow && (item.Overflow == ToolStripItemOverflow.AsNeeded && item.Placement == ToolStripItemPlacement.Overflow)) 529if (item.Overflow != ToolStripItemOverflow.Always) 581if (item.Overflow == ToolStripItemOverflow.AsNeeded && item.Placement != ToolStripItemPlacement.Overflow)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripItemDesigner.cs (1)
189if (value != ToolStripItem.Overflow)
System.Windows.Forms.Tests (25)
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 (13)
71Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 156Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 251Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow); 6233Assert.Equal(value, item.Overflow); 6238Assert.Equal(value, item.Overflow); 6267Assert.Equal(value, item.Overflow); 6275Assert.Equal(value, item.Overflow); 6319Assert.Equal(value, item.Overflow); 6330Assert.Equal(value, item.Overflow); 6361Assert.Equal(value, item.Overflow); 6369Assert.Equal(value, item.Overflow); 6404Assert.Equal(value, item.Overflow); 6415Assert.Equal(value, item.Overflow);
System\Windows\Forms\ToolStripSeparatorTests.cs (1)
69Assert.Equal(ToolStripItemOverflow.AsNeeded, item.Overflow);