ToolStripItemCollection::Add Method (String^, Image^, EventHandler^)

 

Adds a ToolStripItem that displays the specified image and text to the collection and that raises the Click event.

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

public:
ToolStripItem^ Add(
	String^ text,
	Image^ image,
	EventHandler^ onClick
)

Parameters

text
Type: System::String^

The text to be displayed on the ToolStripItem.

image
Type: System.Drawing::Image^

The Image to be displayed on the ToolStripItem.

onClick
Type: System::EventHandler^

Raises the Click event.

.NET Framework
Available since 2.0
Return to top
Show: