Bewerken

Share via


ToolStripLabel Constructors

Definition

Initializes a new instance of the ToolStripLabel class.

Overloads

ToolStripLabel()

Initializes a new instance of the ToolStripLabel class.

ToolStripLabel(Image)

Initializes a new instance of the ToolStripLabel class, specifying the image to display.

ToolStripLabel(String)

Initializes a new instance of the ToolStripLabel class, specifying the text to display.

ToolStripLabel(String, Image)

Initializes a new instance of the ToolStripLabel class, specifying the text and image to display.

ToolStripLabel(String, Image, Boolean)

Initializes a new instance of the ToolStripLabel class, specifying the text and image to display and whether the ToolStripLabel acts as a link.

ToolStripLabel(String, Image, Boolean, EventHandler)

Initializes a new instance of the ToolStripLabel class, specifying the text and image to display, whether the ToolStripLabel acts as a link, and providing a Click event handler.

ToolStripLabel(String, Image, Boolean, EventHandler, String)

Initializes a new instance of the ToolStripLabel class, specifying the text and image to display, whether the ToolStripLabel acts as a link, and providing a Click event handler and name for the ToolStripLabel.

ToolStripLabel()

Initializes a new instance of the ToolStripLabel class.

public:
 ToolStripLabel();
public ToolStripLabel ();
Public Sub New ()

Applies to

ToolStripLabel(Image)

Initializes a new instance of the ToolStripLabel class, specifying the image to display.

public:
 ToolStripLabel(System::Drawing::Image ^ image);
public ToolStripLabel (System.Drawing.Image image);
public ToolStripLabel (System.Drawing.Image? image);
new System.Windows.Forms.ToolStripLabel : System.Drawing.Image -> System.Windows.Forms.ToolStripLabel
Public Sub New (image As Image)

Parameters

image
Image

The Image to display on the ToolStripLabel.

Applies to

ToolStripLabel(String)

Initializes a new instance of the ToolStripLabel class, specifying the text to display.

public:
 ToolStripLabel(System::String ^ text);
public ToolStripLabel (string text);
public ToolStripLabel (string? text);
new System.Windows.Forms.ToolStripLabel : string -> System.Windows.Forms.ToolStripLabel
Public Sub New (text As String)

Parameters

text
String

The text to display on the ToolStripLabel.

Applies to

ToolStripLabel(String, Image)

Initializes a new instance of the ToolStripLabel class, specifying the text and image to display.

public:
 ToolStripLabel(System::String ^ text, System::Drawing::Image ^ image);
public ToolStripLabel (string text, System.Drawing.Image image);
public ToolStripLabel (string? text, System.Drawing.Image? image);
new System.Windows.Forms.ToolStripLabel : string * System.Drawing.Image -> System.Windows.Forms.ToolStripLabel
Public Sub New (text As String, image As Image)

Parameters

text
String

The text to display on the ToolStripLabel.

image
Image

The Image to display on the ToolStripLabel.

Applies to

ToolStripLabel(String, Image, Boolean)

Initializes a new instance of the ToolStripLabel class, specifying the text and image to display and whether the ToolStripLabel acts as a link.

public:
 ToolStripLabel(System::String ^ text, System::Drawing::Image ^ image, bool isLink);
public ToolStripLabel (string text, System.Drawing.Image image, bool isLink);
public ToolStripLabel (string? text, System.Drawing.Image? image, bool isLink);
new System.Windows.Forms.ToolStripLabel : string * System.Drawing.Image * bool -> System.Windows.Forms.ToolStripLabel
Public Sub New (text As String, image As Image, isLink As Boolean)

Parameters

text
String

The text to display on the ToolStripLabel.

image
Image

The Image to display on the ToolStripLabel.

isLink
Boolean

true if the ToolStripLabel acts as a link; otherwise, false.

Applies to

ToolStripLabel(String, Image, Boolean, EventHandler)

Initializes a new instance of the ToolStripLabel class, specifying the text and image to display, whether the ToolStripLabel acts as a link, and providing a Click event handler.

public:
 ToolStripLabel(System::String ^ text, System::Drawing::Image ^ image, bool isLink, EventHandler ^ onClick);
public ToolStripLabel (string text, System.Drawing.Image image, bool isLink, EventHandler onClick);
public ToolStripLabel (string? text, System.Drawing.Image? image, bool isLink, EventHandler? onClick);
new System.Windows.Forms.ToolStripLabel : string * System.Drawing.Image * bool * EventHandler -> System.Windows.Forms.ToolStripLabel
Public Sub New (text As String, image As Image, isLink As Boolean, onClick As EventHandler)

Parameters

text
String

The text to display on the ToolStripLabel.

image
Image

The Image to display on the ToolStripLabel.

isLink
Boolean

true if the ToolStripLabel acts as a link; otherwise, false.

onClick
EventHandler

A Click event handler.

Applies to

ToolStripLabel(String, Image, Boolean, EventHandler, String)

Initializes a new instance of the ToolStripLabel class, specifying the text and image to display, whether the ToolStripLabel acts as a link, and providing a Click event handler and name for the ToolStripLabel.

public:
 ToolStripLabel(System::String ^ text, System::Drawing::Image ^ image, bool isLink, EventHandler ^ onClick, System::String ^ name);
public ToolStripLabel (string text, System.Drawing.Image image, bool isLink, EventHandler onClick, string name);
public ToolStripLabel (string? text, System.Drawing.Image? image, bool isLink, EventHandler? onClick, string? name);
new System.Windows.Forms.ToolStripLabel : string * System.Drawing.Image * bool * EventHandler * string -> System.Windows.Forms.ToolStripLabel
Public Sub New (text As String, image As Image, isLink As Boolean, onClick As EventHandler, name As String)

Parameters

text
String

The text to display on the ToolStripLabel.

image
Image

The Image to display on the ToolStripLabel.

isLink
Boolean

true if the ToolStripLabel acts as a link; otherwise, false.

onClick
EventHandler

A Click event handler.

name
String

The name of the ToolStripLabel.

Applies to