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