ToolStripStatusLabel 建構函式

定義

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

多載

ToolStripStatusLabel()

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

ToolStripStatusLabel(Image)

初始化 ToolStripStatusLabel 類別的新執行個體,以便顯示指定的影像。

ToolStripStatusLabel(String)

初始化 ToolStripStatusLabel 類別的新執行個體,以便顯示指定的文字。

ToolStripStatusLabel(String, Image)

初始化 ToolStripStatusLabel 類別的新執行個體,以便顯示指定的影像和文字。

ToolStripStatusLabel(String, Image, EventHandler)

初始化 ToolStripStatusLabel 類別的新執行個體,以便在使用者按下 ToolStripStatusLabel 時顯示指定的影像和文字,並執行指定的動作。

ToolStripStatusLabel(String, Image, EventHandler, String)

使用指定的名稱初始化 ToolStripStatusLabel 類別的新執行個體,以便在使用者按下 ToolStripStatusLabel 時顯示指定的影像和文字,並執行指定的動作。

ToolStripStatusLabel()

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

C#
public ToolStripStatusLabel ();

適用於

.NET Framework 4.8 和其他版本
產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7

ToolStripStatusLabel(Image)

初始化 ToolStripStatusLabel 類別的新執行個體,以便顯示指定的影像。

C#
public ToolStripStatusLabel (System.Drawing.Image image);

參數

image
Image

顯示在 Image 上的 ToolStripStatusLabel

適用於

.NET Framework 4.8 和其他版本
產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7

ToolStripStatusLabel(String)

初始化 ToolStripStatusLabel 類別的新執行個體,以便顯示指定的文字。

C#
public ToolStripStatusLabel (string text);

參數

text
String

String,代表要顯示在 ToolStripStatusLabel 上的文字。

適用於

.NET Framework 4.8 和其他版本
產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7

ToolStripStatusLabel(String, Image)

初始化 ToolStripStatusLabel 類別的新執行個體,以便顯示指定的影像和文字。

C#
public ToolStripStatusLabel (string text, System.Drawing.Image image);

參數

text
String

String,代表要顯示在 ToolStripStatusLabel 上的文字。

image
Image

顯示在 Image 上的 ToolStripStatusLabel

適用於

.NET Framework 4.8 和其他版本
產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7

ToolStripStatusLabel(String, Image, EventHandler)

初始化 ToolStripStatusLabel 類別的新執行個體,以便在使用者按下 ToolStripStatusLabel 時顯示指定的影像和文字,並執行指定的動作。

C#
public ToolStripStatusLabel (string text, System.Drawing.Image image, EventHandler onClick);

參數

text
String

String,代表要顯示在 ToolStripStatusLabel 上的文字。

image
Image

顯示在 Image 上的 ToolStripStatusLabel

onClick
EventHandler

指定當控制項被按下時要執行的動作。

適用於

.NET Framework 4.8 和其他版本
產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7

ToolStripStatusLabel(String, Image, EventHandler, String)

使用指定的名稱初始化 ToolStripStatusLabel 類別的新執行個體,以便在使用者按下 ToolStripStatusLabel 時顯示指定的影像和文字,並執行指定的動作。

C#
public ToolStripStatusLabel (string text, System.Drawing.Image image, EventHandler onClick, string name);

參數

text
String

String,代表要顯示在 ToolStripStatusLabel 上的文字。

image
Image

顯示在 Image 上的 ToolStripStatusLabel

onClick
EventHandler

指定當控制項被按下時要執行的動作。

name
String

ToolStripStatusLabel 的名稱。

適用於

.NET Framework 4.8 和其他版本
產品 版本
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7