語言

ToolStripLabel 建構函式

定義

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

多載

名稱 Description
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作為連結,並提供Click事件處理程序與名稱。ToolStripLabel

ToolStripLabel()

來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs

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

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

適用於

ToolStripLabel(Image)

來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
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)

參數

適用於

ToolStripLabel(String)

來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
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)

來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
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.

適用於

ToolStripLabel(String, Image, Boolean)

來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
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.

isLink
Boolean

true 若 作為 ToolStripLabel 連結;否則, false。

適用於

ToolStripLabel(String, Image, Boolean, EventHandler)

來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
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.

isLink
Boolean

true 若 作為 ToolStripLabel 連結;否則, false。

onClick
EventHandler

事件處理器 Click 。

適用於

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

來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs
來源:
ToolStripLabel.cs

初始化該類別的新實例ToolStripLabel,指定要顯示的文字與圖片、是否ToolStripLabel作為連結,並提供Click事件處理程序與名稱。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)

參數

text
String

文字要顯示在 ToolStripLabel.

isLink
Boolean

true 若 作為 ToolStripLabel 連結;否則, false。

onClick
EventHandler

事件處理器 Click 。

name
String

這個名稱 ToolStripLabel。

適用於