ToolStripDropDownItem::HasDropDownItems Property
.NET Framework (current version)
Gets a value indicating whether the ToolStripDropDownItem has ToolStripDropDown controls associated with it.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: [BrowsableAttribute(false)] property bool HasDropDownItems { virtual bool get(); }
Property Value
Type: System::Booleantrue if the ToolStripDropDownItem has ToolStripDropDown controls; otherwise, false.
The following code example demonstrates how to query the HasDropDownItems property to conditionally show a ToolStripDropDownItem control. This code example is part of a larger example provided for the ToolStripDropDownItem class.
.NET Framework
Available since 2.0
Available since 2.0
Show: