Editare

Partajați prin


ToolStripStatusLabel Constructors

Definition

Initializes a new instance of the ToolStripStatusLabel class.

Overloads

ToolStripStatusLabel()

Initializes a new instance of the ToolStripStatusLabel class.

ToolStripStatusLabel(Image)

Initializes a new instance of the ToolStripStatusLabel class that displays the specified image.

ToolStripStatusLabel(String)

Initializes a new instance of the ToolStripStatusLabel class that displays the specified text.

ToolStripStatusLabel(String, Image)

Initializes a new instance of the ToolStripStatusLabel class that displays the specified image and text.

ToolStripStatusLabel(String, Image, EventHandler)

Initializes a new instance of the ToolStripStatusLabel class that displays the specified image and text, and that carries out the specified action when the user clicks the ToolStripStatusLabel.

ToolStripStatusLabel(String, Image, EventHandler, String)

Initializes a new instance of the ToolStripStatusLabel class with the specified name that displays the specified image and text, and that carries out the specified action when the user clicks the ToolStripStatusLabel.

ToolStripStatusLabel()

Initializes a new instance of the ToolStripStatusLabel class.

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

Applies to

ToolStripStatusLabel(Image)

Initializes a new instance of the ToolStripStatusLabel class that displays the specified image.

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

Parameters

image
Image

An Image that is displayed on the ToolStripStatusLabel.

Applies to

ToolStripStatusLabel(String)

Initializes a new instance of the ToolStripStatusLabel class that displays the specified text.

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

Parameters

text
String

A String representing the text to be displayed on the ToolStripStatusLabel.

Applies to

ToolStripStatusLabel(String, Image)

Initializes a new instance of the ToolStripStatusLabel class that displays the specified image and text.

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

Parameters

text
String

A String representing the text to be displayed on the ToolStripStatusLabel.

image
Image

An Image that is displayed on the ToolStripStatusLabel.

Applies to

ToolStripStatusLabel(String, Image, EventHandler)

Initializes a new instance of the ToolStripStatusLabel class that displays the specified image and text, and that carries out the specified action when the user clicks the ToolStripStatusLabel.

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

Parameters

text
String

A String representing the text to be displayed on the ToolStripStatusLabel.

image
Image

An Image that is displayed on the ToolStripStatusLabel.

onClick
EventHandler

Specifies the action to carry out when the control is clicked.

Applies to

ToolStripStatusLabel(String, Image, EventHandler, String)

Initializes a new instance of the ToolStripStatusLabel class with the specified name that displays the specified image and text, and that carries out the specified action when the user clicks the ToolStripStatusLabel.

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

Parameters

text
String

A String representing the text to be displayed on the ToolStripStatusLabel.

image
Image

An Image that is displayed on the ToolStripStatusLabel.

onClick
EventHandler

Specifies the action to carry out when the control is clicked.

name
String

The name of the ToolStripStatusLabel.

Applies to