13 instantiations of ToolStripOverflow
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (1)
68return new ToolStripOverflow(this);
System.Windows.Forms.Tests (12)
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (8)
15using ToolStripOverflow toolStripOverflow = new(toolStripItem); 26using ToolStripOverflow toolStripOverflow = new(toolStripItem); 40using ToolStripOverflow toolStripOverflow = new(toolStripItem); 69using ToolStripOverflow toolStripOverflow = new(toolStripItem); 89using ToolStripOverflow toolStripOverflow = new(toolStripItem); 102using ToolStripOverflow toolStripOverflow = new(toolStripItem); 114using ToolStripOverflow toolStripOverflow = new(toolStripItem); 186using ToolStripOverflow toolStripOverflow = new(toolStripItem);
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (4)
78yield return new object[] { new ToolStripOverflow(new ToolStripButton()) }; 79yield return new object[] { new ToolStripOverflow(new ToolStripDropDownButton()) }; 84yield return new object[] { new ToolStripOverflow(ownedDropDownItem) }; 85yield return new object[] { new ToolStripOverflow(owner.OverflowButton) };
36 references to ToolStripOverflow
System.Windows.Forms (14)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (6)
1495if (dropDown is ToolStripOverflow || dropDown.IsAutoGenerated) 1880ToolStripOverflow? overflow = GetOverflow(); 2008internal ToolStripOverflow? GetOverflow() 2010return (_toolStripOverflowButton is null || !_toolStripOverflowButton.HasDropDown) ? null : _toolStripOverflowButton.DropDown as ToolStripOverflow; 3255ToolStripOverflow? overflow = GetOverflow(); 4311ToolStripOverflow? overflow = GetOverflow();
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (1)
294if (owner is ToolStripOverflow overflow)
System\Windows\Forms\Controls\ToolStrips\ToolStripHighContrastRenderer.cs (1)
265if (e.ToolStrip is not ToolStripOverflow)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
175ToolStripOverflow? overflow = null;
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflow.ToolStripOverflowAccessibleObject.cs (4)
13public ToolStripOverflowAccessibleObject(ToolStripOverflow owner) : base(owner) 17=> this.TryGetOwnerAs(out ToolStripOverflow? owner) && (index >= 0 || index < owner.DisplayedItems.Count) 24=> this.TryGetOwnerAs(out ToolStripOverflow? owner) 31NavigateDirection.NavigateDirection_Parent when this.TryGetOwnerAs(out ToolStripOverflow? owner)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
1202if (toolStripDropDown is not ToolStripOverflow)
System.Windows.Forms.Design (13)
System\Windows\Forms\Design\ToolStripDesigner.cs (2)
1617while (topmost is not null and not ToolStripOverflow) 1623return (topmost is ToolStripOverflow);
System\Windows\Forms\Design\ToolStripItemBehavior.cs (2)
731if (parentToolStrip is ToolStripOverflow overflow) 801if (item.GetCurrentParent() is ToolStripDropDown dropDown && !(dropDown is ToolStripOverflow))
System\Windows\Forms\Design\ToolStripItemDesigner.cs (3)
726if (parent is ToolStripOverflow) 1066if (parent is ToolStripOverflow) 1121if (parent is ToolStripOverflow)
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (5)
769if (parent is ToolStripOverflow) 1223targetSelection = parent is ToolStripOverflow 1422if (parentToMoveOn is ToolStripOverflow) 1864if (parent is ToolStripOverflow) 1927if (parent is ToolStripOverflow)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
1564if ((topMostItem is not null && topMostItem.GetCurrentParent() is ToolStripOverflow) && !main.CanOverflow)
System.Windows.Forms.Tests (9)
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (9)
5using static System.Windows.Forms.ToolStripOverflow; 15using ToolStripOverflow toolStripOverflow = new(toolStripItem); 26using ToolStripOverflow toolStripOverflow = new(toolStripItem); 40using ToolStripOverflow toolStripOverflow = new(toolStripItem); 69using ToolStripOverflow toolStripOverflow = new(toolStripItem); 89using ToolStripOverflow toolStripOverflow = new(toolStripItem); 102using ToolStripOverflow toolStripOverflow = new(toolStripItem); 114using ToolStripOverflow toolStripOverflow = new(toolStripItem); 186using ToolStripOverflow toolStripOverflow = new(toolStripItem);