Share via


ChangePassword.ValidatorTextStyle 屬性

定義

取得定義錯誤訊息外觀的 Style 屬性集合參考,該錯誤訊息與 ChangePassword 控制項使用的任何輸入驗證相關聯。

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

屬性值

Style

Style 物件,定義錯誤訊息的外觀,其與 ChangePassword 控制項使用之任何輸入驗證相關聯。 預設為 null

屬性

備註

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

設定 描述
BackColor 錯誤訊息背後的色彩。 色彩可以是任何 Color 屬性。
BorderColor 錯誤訊息周圍框線的色彩。 色彩可以是任何 Color 屬性。
BorderStyle 錯誤訊息周圍框線的樣式。 此樣式可以是 「None」、「Dotted」、「Dashed」、「Solid」、「Double」、「Groove」、「Ridge」、「Inset」 或 「Outset」。 預設值為 「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 表示錯誤訊息的寬度。

適用於

另請參閱