ToolStripLabel 构造函数

定义

初始化 ToolStripLabel 类的新实例。

重载

名称 说明
ToolStripLabel()

初始化 ToolStripLabel 类的新实例。

ToolStripLabel(Image)

初始化类的新实例 ToolStripLabel ,指定要显示的图像。

ToolStripLabel(String)

初始化类的新实例 ToolStripLabel ,指定要显示的文本。

ToolStripLabel(String, Image)

初始化类的新实例 ToolStripLabel ,指定要显示的文本和图像。

ToolStripLabel(String, Image, Boolean)

初始化类的新实例 ToolStripLabel ,指定要显示的文本和图像以及 ToolStripLabel 是否充当链接。

ToolStripLabel(String, Image, Boolean, EventHandler)

初始化类的新实例 ToolStripLabel ,指定要显示的文本和图像、是否 ToolStripLabel 充当链接并提供 Click 事件处理程序。

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

初始化类的新实例,指定要显示的文本和图像、是否充当链接以及为 <a0/> 提供事件处理程序和名称。

ToolStripLabel()

Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs

初始化 ToolStripLabel 类的新实例。

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

适用于

ToolStripLabel(Image)

Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs

初始化类的新实例 ToolStripLabel ,指定要显示的图像。

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)

参数

image
Image

Image显示在 .ToolStripLabel

适用于

ToolStripLabel(String)

Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs

初始化类的新实例 ToolStripLabel ,指定要显示的文本。

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)

参数

text
String

要显示在 . 上的 ToolStripLabel文本。

适用于

ToolStripLabel(String, Image)

Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs

初始化类的新实例 ToolStripLabel ,指定要显示的文本和图像。

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)

参数

text
String

要显示在 . 上的 ToolStripLabel文本。

image
Image

Image显示在 .ToolStripLabel

适用于

ToolStripLabel(String, Image, Boolean)

Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs

初始化类的新实例 ToolStripLabel ,指定要显示的文本和图像以及 ToolStripLabel 是否充当链接。

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)

参数

text
String

要显示在 . 上的 ToolStripLabel文本。

image
Image

Image显示在 .ToolStripLabel

isLink
Boolean

true ToolStripLabel如果充当链接,则为 .;否则为 false

适用于

ToolStripLabel(String, Image, Boolean, EventHandler)

Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs

初始化类的新实例 ToolStripLabel ,指定要显示的文本和图像、是否 ToolStripLabel 充当链接并提供 Click 事件处理程序。

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)

参数

text
String

要显示在 . 上的 ToolStripLabel文本。

image
Image

Image显示在 .ToolStripLabel

isLink
Boolean

true ToolStripLabel如果充当链接,则为 .;否则为 false

onClick
EventHandler

Click事件处理程序。

适用于

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

Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs
Source:
ToolStripLabel.cs

初始化类的新实例,指定要显示的文本和图像、是否充当链接以及为 <a0/> 提供事件处理程序和名称。

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)

参数

text
String

要显示在 . 上的 ToolStripLabel文本。

image
Image

Image显示在 .ToolStripLabel

isLink
Boolean

true ToolStripLabel如果充当链接,则为 .;否则为 false

onClick
EventHandler

Click事件处理程序。

name
String

ToolStripLabel的名称。

适用于