ToolStripDropDownItem::DropDownItems Property

 

Gets the collection of items in the ToolStripDropDown that is associated with this ToolStripDropDownItem.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public:
property ToolStripItemCollection^ DropDownItems {
	ToolStripItemCollection^ get();
}

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).

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0
Return to top
Show: