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)

初始化 ToolStripLabel 類別的新執行個體,以便指定要顯示的文字和影像、指定 ToolStripLabel 是否做為連結,並提供 ClickToolStripLabel 事件處理常式和名稱。

ToolStripLabel()

初始化 ToolStripLabel 類別的新執行個體。

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

適用於

ToolStripLabel(Image)

初始化 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

要顯示在 ToolStripLabel 上的 Image

適用於

ToolStripLabel(String)

初始化 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)

初始化 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

要顯示在 ToolStripLabel 上的 Image

適用於

ToolStripLabel(String, Image, Boolean)

初始化 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

要顯示在 ToolStripLabel 上的 Image

isLink
Boolean

如果 ToolStripLabel 做為連結,則為 true,否則為 false

適用於

ToolStripLabel(String, Image, Boolean, EventHandler)

初始化 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

要顯示在 ToolStripLabel 上的 Image

isLink
Boolean

如果 ToolStripLabel 做為連結,則為 true,否則為 false

onClick
EventHandler

Click 事件處理常式。

適用於

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

初始化 ToolStripLabel 類別的新執行個體,以便指定要顯示的文字和影像、指定 ToolStripLabel 是否做為連結,並提供 ClickToolStripLabel 事件處理常式和名稱。

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

要顯示在 ToolStripLabel 上的 Image

isLink
Boolean

如果 ToolStripLabel 做為連結,則為 true,否則為 false

onClick
EventHandler

Click 事件處理常式。

name
String

ToolStripLabel 的名稱。

適用於