18 references to HasDropDown
System.Windows.Forms (4)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (3)
1969if (CanOverflow && OverflowButton.HasDropDown) 1988if (CanOverflow && OverflowButton.HasDropDown) 2010return (_toolStripOverflowButton is null || !_toolStripOverflowButton.HasDropDown) ? null : _toolStripOverflowButton.DropDown as ToolStripOverflow;
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDownItem.cs (1)
460if (HasDropDown && DropDown.IsAutoGenerated)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ToolStripMenuItemDesigner.cs (1)
996if (MenuItem is not null && MenuItem.HasDropDown)
System.Windows.Forms.Tests (13)
System\Windows\Forms\ToolStripDropDownItemTests.cs (12)
57Assert.False(item.HasDropDown); 146Assert.False(item.HasDropDown); 245Assert.False(item.HasDropDown); 306Assert.Equal(dropDownItems is not null, item.HasDropDown); 343Assert.True(item.HasDropDown); 353Assert.True(item.HasDropDown); 399Assert.True(item.HasDropDown); 419Assert.True(item.HasDropDown); 439Assert.True(item.HasDropDown); 456Assert.True(item.HasDropDown); 468Assert.False(item.HasDropDown); 484Assert.True(item.HasDropDown);
System\Windows\Forms\ToolStripMenuItemTests.cs (1)
61Assert.False(item.HasDropDown);