ToolStripLabel Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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()
- Source:
- ToolStripLabel.cs
- Source:
- ToolStripLabel.cs
- Source:
- ToolStripLabel.cs
Initializes a new instance of the ToolStripLabel class.
public:
ToolStripLabel();
public ToolStripLabel ();
Public Sub New ()
Applies to
ToolStripLabel(Image)
- Source:
- ToolStripLabel.cs
- Source:
- ToolStripLabel.cs
- Source:
- ToolStripLabel.cs
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)
- Source:
- ToolStripLabel.cs
- Source:
- ToolStripLabel.cs
- Source:
- ToolStripLabel.cs
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)
- Source:
- ToolStripLabel.cs
- Source:
- ToolStripLabel.cs
- Source:
- ToolStripLabel.cs
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)
- Source:
- ToolStripLabel.cs
- Source:
- ToolStripLabel.cs
- Source:
- ToolStripLabel.cs
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)
- Source:
- ToolStripLabel.cs
- Source:
- ToolStripLabel.cs
- Source:
- ToolStripLabel.cs
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)
- Source:
- ToolStripLabel.cs
- Source:
- ToolStripLabel.cs
- Source:
- ToolStripLabel.cs
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.