System.Windows.Forms.ToolStripItemCollection.Add Method

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

Syntax

public ToolStripItem Add (string text, System.Drawing.Image image, EventHandler onClick)

Parameters

text
The text to be displayed on the System.Windows.Forms.ToolStripItem.
image
The System.Drawing.Image to be displayed on the System.Windows.Forms.ToolStripItem.
onClick
Raises the ToolStripItem.Click event.

Returns

The new System.Windows.Forms.ToolStripItem.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0