ToolStripDropDownItem::DropDownItems Property
.NET Framework (current version)
Gets the collection of items in the ToolStripDropDown that is associated with this ToolStripDropDownItem.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
public: property ToolStripItemCollection^ DropDownItems { ToolStripItemCollection^ get(); }
Property Value
Type: System.Windows.Forms::ToolStripItemCollection^A ToolStripItemCollection of controls.
Use the DropDownItems property to get all the items in the ToolStripDropDown that is referred to by the DropDown property.
The following code example demonstrates how to use the DropDownItems property to create a menu with sub-menus. For the complete code example, see How to: Display Option Buttons in a MenuStrip (Windows Forms).
.NET Framework
Available since 2.0
Available since 2.0
Show: