ToolStripDropDownItem Constructor (String^, Image^, EventHandler^, String^)
.NET Framework (current version)
Initializes a new instance of the ToolStripDropDownItem class with the specified display text, image, action to take when the drop-down control is clicked, and control name.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
protected:
ToolStripDropDownItem(
String^ text,
Image^ image,
EventHandler^ onClick,
String^ name
)
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.
- onClick
-
Type:
System::EventHandler^
The action to take when the drop-down control is clicked.
- name
-
Type:
System::String^
The name of the control.
.NET Framework
Available since 2.0
Available since 2.0
Show: