113 references to OverflowButton
System.Windows.Forms (41)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (16)
1638if (_toolStripOverflowButton is not null && OverflowButton.HasDropDownItems) 1640OverflowButton.DropDown.ShowItemToolTips = value; 1969if (CanOverflow && OverflowButton.HasDropDown) 1973CommonProperties.xClearPreferredSizeCache(OverflowButton.DropDown); 1974OverflowButton.DropDown.LayoutRequired = true; 1978LayoutTransaction.DoLayout(OverflowButton.DropDown, e.Item, PropertyNames.Items); 1979OverflowButton.DropDown.Invalidate(); 1988if (CanOverflow && OverflowButton.HasDropDown) 1990OverflowButton.DropDown.LayoutRequired = true; 1998|| !OverflowButton.DropDown.Visible 1999|| !OverflowButton.DropDown.IsHandleCreated; 2309ToolStripOverflowButton overflowItem = toolStrip.OverflowButton; 2368ToolStripOverflowButton overflowItem = toolStrip.OverflowButton; 2468OverflowButton.DropDown.HandleItemClick(dismissingItem); 4319OverflowButton.Visible = false; 4323DisplayedItems.Add(OverflowButton);
System\Windows\Forms\Controls\ToolStrips\ToolStrip.ToolStripAccessibleObject.cs (9)
108if (owner.CanOverflow && owner.OverflowButton.Visible && index == owner.Items.Count) 110return owner.OverflowButton.AccessibilityObject; 141if (owner.CanOverflow && owner.OverflowButton.Visible) 162&& owner.OverflowButton.Visible 165return owner.OverflowButton.AccessibilityObject; 300if (owner.CanOverflow && owner.OverflowButton.Visible && child.Owner == owner.OverflowButton) 341if (owner.CanOverflow && owner.OverflowButton.Visible && child.Owner == owner.OverflowButton)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (2)
599public new ToolStripOverflowButton OverflowButton => base.OverflowButton; 650return _ownerItem.Owner.OverflowButton.DropDown;
System\Windows\Forms\Controls\ToolStrips\ToolStripItem.cs (1)
3426parent ??= (IsOnOverflow && Owner is not null) ? Owner.OverflowButton.DropDown : Owner;
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (3)
447if (toolStrip.OverflowButton.Visible) 871if (toolStrip.OverflowButton.Visible) 904ToolStripItem item = toolStrip.OverflowButton;
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitStackLayout.cs (10)
40Size overflowButtonSize = toolStrip.OverflowButton.AutoSize ? toolStrip.OverflowButton.GetPreferredSize(_displayRectangle.Size) : toolStrip.OverflowButton.Size; 41return overflowButtonSize + toolStrip.OverflowButton.Margin.Size; 224toolStrip.OverflowButton.Visible = needOverflow; 245item = toolStrip.OverflowButton; 347item.ParentInternal = (item.Placement == ToolStripItemPlacement.Overflow) ? toolStrip.OverflowButton.DropDown : null; 379toolStrip.OverflowButton.Visible = needOverflow; 387item = toolStrip.OverflowButton; 480item.ParentInternal = (item.Placement == ToolStripItemPlacement.Overflow) ? toolStrip.OverflowButton.DropDown : null;
System.Windows.Forms.Design (20)
System\Windows\Forms\Design\ToolStripDesigner.cs (16)
377if (ToolStrip.OverflowButton.Visible) 379return ToolStrip.OverflowButton.Bounds; 756if (ToolStrip.CanOverflow && !ToolStrip.OverflowButton.DropDown.Visible) 758ToolStrip.OverflowButton.ShowDropDown(); 767if (ToolStrip.OverflowButton.DropDown.Visible) 769ToolStrip.OverflowButton.HideDropDown(); 1019if (ToolStrip.CanOverflow && !ToolStrip.OverflowButton.DropDown.Visible) 1021ToolStrip.OverflowButton.ShowDropDown(); 1199if (ToolStrip.OverflowButton.DropDown.Visible) 1201ToolStrip.OverflowButton.HideDropDown(); 1435ToolStrip.OverflowButton.DropDown.TopLevel = false; 2005ToolStripItem nextItem = ToolStrip.GetNextItem(ToolStrip.OverflowButton, ArrowDirection.Left); 2315if (ToolStrip.OverflowButton.DropDown.Visible) 2317ToolStrip.OverflowButton.HideDropDown(); 2348if (!DontCloseOverflow && ToolStrip.OverflowButton.DropDown.Visible) 2350ToolStrip.OverflowButton.HideDropDown();
System\Windows\Forms\Design\ToolStripItemDesigner.cs (2)
176if (strip.OverflowButton.DropDown.Visible) 178strip.OverflowButton.HideDropDown();
System\Windows\Forms\Design\ToolStripKeyboardHandlingService.cs (2)
1377? dropDownItem.Owner.OverflowButton.DropDown 1729owner?.OverflowButton.HideDropDown();
System.Windows.Forms.Tests (52)
System\Windows\Forms\AccessibleObjects\MenuStrip.MenuStripAccessibleObjectTests.cs (2)
307AccessibleObject expected = menuStrip.OverflowButton.AccessibilityObject; 750AccessibleObject expected = menuStrip.OverflowButton.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\StatusStrip.StatusStripAccessibleObjectTests.cs (2)
287AccessibleObject expected = statusStrip.OverflowButton.AccessibilityObject; 730AccessibleObject expected = statusStrip.OverflowButton.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripAccessibleObjectTests.cs (2)
300AccessibleObject expected = toolStrip.OverflowButton.AccessibilityObject; 743AccessibleObject expected = toolStrip.OverflowButton.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripDropDownMenu.ToolStripDropDownMenuAccessibleObjectTests.cs (2)
62ToolStripOverflowButton item = toolStrip.OverflowButton; 205using ToolStripOverflowButton ownerItem = toolStrip.OverflowButton;
System\Windows\Forms\AccessibleObjects\ToolStripOverflow.ToolStripOverflowAccessibleObjectTests.cs (8)
127toolStrip.OverflowButton.DropDown.CreateControl(ignoreVisible: true); 129AccessibleObject accessibleObject = toolStrip.OverflowButton.DropDown.AccessibilityObject; 144toolStrip.OverflowButton.DropDown.CreateControl(ignoreVisible: true); 146AccessibleObject accessibleObject = toolStrip.OverflowButton.DropDown.AccessibilityObject; 157toolStrip.OverflowButton.DropDown.CreateControl(ignoreVisible: true); 159AccessibleObject accessibleObject = toolStrip.OverflowButton.DropDown.AccessibilityObject; 174toolStrip.OverflowButton.DropDown.CreateControl(ignoreVisible: true); 176AccessibleObject accessibleObject = toolStrip.OverflowButton.DropDown.AccessibilityObject;
System\Windows\Forms\AccessibleObjects\ToolStripOverflowButton.ToolStripOverflowButtonAccessibleObjectTests.cs (4)
91AccessibleObject accessibleObject = toolStrip.OverflowButton.AccessibilityObject; 96toolStrip.OverflowButton.DropDown.Show(); 98AccessibleObject expected = toolStrip.OverflowButton.DropDown.AccessibilityObject; 116AccessibleObject overflowButton = toolStrip.OverflowButton.AccessibilityObject;
System\Windows\Forms\MenuStripTests.cs (5)
113Assert.NotNull(control.OverflowButton); 114Assert.Same(control.OverflowButton, control.OverflowButton); 115Assert.Same(control, control.OverflowButton.GetCurrentParent()); 346Assert.Equal(!value, control.OverflowButton.DropDown.ShowItemToolTips);
System\Windows\Forms\StatusStripTests.cs (5)
112Assert.NotNull(control.OverflowButton); 113Assert.Same(control.OverflowButton, control.OverflowButton); 114Assert.Same(control, control.OverflowButton.GetCurrentParent()); 854Assert.Equal(!value, control.OverflowButton.DropDown.ShowItemToolTips);
System\Windows\Forms\ToolStripItemRenderEventArgsTests.cs (1)
38yield return new object[] { graphics, toolStrip.OverflowButton, toolStrip };
System\Windows\Forms\ToolStripRenderEventArgsTests.cs (1)
85yield return new object[] { new ToolStripOverflow(owner.OverflowButton) };
System\Windows\Forms\ToolStripTests.cs (20)
129Assert.NotNull(control.OverflowButton); 130Assert.Same(control.OverflowButton, control.OverflowButton); 131Assert.Same(control, control.OverflowButton.GetCurrentParent()); 284Assert.NotNull(control.OverflowButton); 285Assert.Same(control.OverflowButton, control.OverflowButton); 286Assert.Same(control, control.OverflowButton.GetCurrentParent()); 3599Assert.Equal(!value, control.OverflowButton.DropDown.ShowItemToolTips); 3623Assert.Equal(!value, control.OverflowButton.DropDown.ShowItemToolTips); 3632Assert.NotNull(control.OverflowButton); 3636Assert.Equal(value, control.OverflowButton.DropDown.ShowItemToolTips); 3642Assert.Equal(value, control.OverflowButton.DropDown.ShowItemToolTips); 3648Assert.Equal(value, control.OverflowButton.DropDown.ShowItemToolTips); 5382Assert.NotNull(control.OverflowButton); 5418control.OverflowButton.DropDown = new ToolStripDropDown(); 5556Assert.NotNull(control.OverflowButton); 5605control.OverflowButton.DropDown = new ToolStripDropDown(); 6513control.OverflowButton.RightToLeftChanged += (sender, e) => 6515Assert.Same(control.OverflowButton, sender);