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