ToolStripItem ToolStripItem ToolStripItem ToolStripItem Constructors

Definition

Overloads

ToolStripItem() ToolStripItem() ToolStripItem()

Initializes a new instance of the ToolStripItem class.

ToolStripItem(String, Image, EventHandler) ToolStripItem(String, Image, EventHandler) ToolStripItem(String, Image, EventHandler)

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

ToolStripItem(String, Image, EventHandler, String) ToolStripItem(String, Image, EventHandler, String) ToolStripItem(String, Image, EventHandler, String)

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

ToolStripItem() ToolStripItem() ToolStripItem()

Initializes a new instance of the ToolStripItem class.

protected:
 ToolStripItem();
protected ToolStripItem ();
Protected Sub New ()

ToolStripItem(String, Image, EventHandler) ToolStripItem(String, Image, EventHandler) ToolStripItem(String, Image, EventHandler)

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

protected:
 ToolStripItem(System::String ^ text, System::Drawing::Image ^ image, EventHandler ^ onClick);
protected ToolStripItem (string text, System.Drawing.Image image, EventHandler onClick);
new System.Windows.Forms.ToolStripItem : string * System.Drawing.Image * EventHandler -> System.Windows.Forms.ToolStripItem

Parameters

text
String String String String

A String representing the name of the ToolStripItem.

image
Image Image Image Image

The Image to display on the ToolStripItem.

onClick
EventHandler EventHandler EventHandler EventHandler

Raises the Click event when the user clicks the ToolStripItem.

ToolStripItem(String, Image, EventHandler, String) ToolStripItem(String, Image, EventHandler, String) ToolStripItem(String, Image, EventHandler, String)

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

protected:
 ToolStripItem(System::String ^ text, System::Drawing::Image ^ image, EventHandler ^ onClick, System::String ^ name);
protected ToolStripItem (string text, System.Drawing.Image image, EventHandler onClick, string name);
new System.Windows.Forms.ToolStripItem : string * System.Drawing.Image * EventHandler * string -> System.Windows.Forms.ToolStripItem

Parameters

text
String String String String

The text to display on the ToolStripItem.

image
Image Image Image Image

The Image to display on the ToolStripItem.

onClick
EventHandler EventHandler EventHandler EventHandler

The event handler for the Click event.

name
String String String String

The name of the ToolStripItem.

Applies to