Share via


ChangePassword.LabelStyle 屬性

定義

取得定義 Style 控制項上文字方塊標籤外觀之 ChangePassword 物件集合的參考。

public:
 property System::Web::UI::WebControls::TableItemStyle ^ LabelStyle { System::Web::UI::WebControls::TableItemStyle ^ get(); };
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
public System.Web.UI.WebControls.TableItemStyle LabelStyle { get; }
[<System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)>]
member this.LabelStyle : System.Web.UI.WebControls.TableItemStyle
Public ReadOnly Property LabelStyle As TableItemStyle

屬性值

TableItemStyle 物件,包含 Style 屬性,此屬性定義 ChangePassword 控制項上文字方塊標籤的外觀。 預設為 null

屬性

備註

下表列出可使用 屬性自訂的 LabelStyle 樣式設定。

設定 說明
BackColor 文字方塊標籤背後的色彩。 色彩可以是任何 Color 屬性。
BorderColor 文字方塊標籤周圍框線的色彩。 色彩可以是任何 Color 屬性。
BorderStyle 文字方塊標籤周圍的框線樣式。 樣式可以是 "None" 、、、 "Dashed""Groove""Double""Solid""Ridge" 、、 "Inset" 或 。 "Outset""Dotted" 預設為 "NotSet"。 除非值大於 2, BorderWidth 否則某些樣式不會清楚顯示。
BorderWidth 文字方塊標籤周圍的框線寬度。
CssClass 用來呈現文字方塊標籤的級聯樣式表單 (CSS) 類別。 如果指定其他設定,則會覆寫樣式表單設定。
Font-Bold true 以粗體類型顯示文字方塊標籤文字。
Font-Italic true 以斜體類型顯示文字方塊標籤文字。
Font-Names 字型臉部的名稱。
Font-Overline true 顯示文字方塊標籤文字,其上方有一行。
Font-Size 文字方塊標籤中文字的大小做為 FontUnit 物件。
Font-Strikeout true ,將文字方塊標籤文字顯示為已交叉。
Font-Underline true 表示顯示具有底線的文字方塊標籤文字。
ForeColor 文字方塊標籤中文字的色彩。 色彩可以是任何 Color 屬性。
Height Unit 表示文字方塊標籤的高度。
Width Unit 表示文字方塊標籤的寬度。

適用於

另請參閱