ToolStripDropDownItem Constructor (String, Image, ToolStripItem[])

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the ToolStripDropDownItem class with the specified display text, image, and ToolStripItem collection that the drop-down control contains.

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

protected ToolStripDropDownItem(
	string text,
	Image image,
	params ToolStripItem[] dropDownItems
)

Parameters

text
Type: System.String

The display text of the drop-down control.

image
Type: System.Drawing.Image

The Image to be displayed on the control.

dropDownItems
Type: System.Windows.Forms.ToolStripItem[]

A ToolStripItem collection that the drop-down control contains.

You must derive a drop-down control from the ToolStripDropDownItem class in order to have any drop-down functionality for a ToolStripDropDownButton, ToolStripMenuItem, or ToolStripSplitButton control.

.NET Framework
Available since 2.0
Return to top
Show: