1 override of HasDropDownItems
System.Windows.Forms (1)
System\Windows\Forms\Controls\ToolStrips\ToolStripOverflowButton.cs (1)
45
public override bool
HasDropDownItems
=> ParentInternal is not null && ParentInternal.OverflowItems.Count > 0;
31 references to HasDropDownItems
System.Windows.Forms (25)
System\Windows\Forms\Controls\Menus\MenuTimer.cs (1)
126
if (rollup && lastSelected is not null && lastSelected.
HasDropDownItems
)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
1804
&& dropDownItem.
HasDropDownItems
)
2477
if (dismissingItem is ToolStripDropDownItem item && !item.
HasDropDownItems
)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1138
|| !dismissingItem.
HasDropDownItems
)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownButton.cs (1)
218
if (
HasDropDownItems
)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (5)
186
if (
HasDropDownItems
&& DropDown.Visible)
209
if (ParentInternal is null || !
HasDropDownItems
)
442
if (
HasDropDownItems
)
556
if (
HasDropDownItems
)
571
if (
HasDropDownItems
)
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItemAccessibleObject.cs (4)
35
if (Owner is ToolStripDropDownItem item && item.
HasDropDownItems
)
52
if (patternId == UIA_PATTERN_ID.UIA_ExpandCollapsePatternId && _owner.
HasDropDownItems
)
92
if (!_owner.
HasDropDownItems
)
102
if (!_owner.
HasDropDownItems
)
System\Windows\Forms\Controls\ToolStrips\ToolStripItemCollection.cs (1)
275
if (item.
HasDropDownItems
)
System\Windows\Forms\Controls\ToolStrips\ToolStripMenuItem.cs (5)
749
if (!Enabled || ParentInternal is null || !ParentInternal.MenuAutoExpand || !
HasDropDownItems
)
998
showShortCut = showShortCut && !
HasDropDownItems
;
1007
if (
HasDropDownItems
)
1037
if (Enabled && ShortcutKeys == keyData && !
HasDropDownItems
)
1050
if (
HasDropDownItems
)
System\Windows\Forms\Controls\ToolStrips\ToolstripProfessionalRenderer.cs (1)
228
if (e.Item is ToolStripDropDownItem item && item.Pressed && item.
HasDropDownItems
)
System\Windows\Forms\Controls\ToolStrips\ToolStripSplitButton.ToolStripSplitButtonExAccessibleObject.cs (1)
47
if (patternId == UIA_PATTERN_ID.UIA_ExpandCollapsePatternId && _owningToolStripSplitButton.
HasDropDownItems
)
System\Windows\Forms\MDI\MDIControlStrip.cs (2)
123
if (_system.
HasDropDownItems
)
136
if (!_system.
HasDropDownItems
&& (_target is not null))
System\Windows\Forms\MDI\MdiControlStrip.SystemMenuItem.cs (1)
30
if (
HasDropDownItems
&& DropDown.Visible)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\BindingNavigatorDesigner.cs (1)
111
if (dropDownItem is not null && dropDownItem.
HasDropDownItems
)
System.Windows.Forms.Tests (5)
System\Windows\Forms\ToolStripDropDownItemTests.cs (4)
56
Assert.False(item.
HasDropDownItems
);
145
Assert.False(item.
HasDropDownItems
);
244
Assert.False(item.
HasDropDownItems
);
352
Assert.Equal(expectedDropDownItems.Length > 0, item.
HasDropDownItems
);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
60
Assert.False(item.
HasDropDownItems
);