ToolStripItem Constructor (String^, Image^, EventHandler^, String^)

 

Initializes a new instance of the ToolStripItem class with the specified display text, image, event handler, and name.

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

protected:
ToolStripItem(
	String^ text,
	Image^ image,
	EventHandler^ onClick,
	String^ name
)

Parameters

text
Type: System::String^

The text to display on the ToolStripItem.

image
Type: System.Drawing::Image^

The Image to display on the ToolStripItem.

onClick
Type: System::EventHandler^

The event handler for the Click event.

name
Type: System::String^

The name of the ToolStripItem.

.NET Framework
Available since 2.0
Return to top
Show: