共用方式為


CreateUserWizard.PasswordHintStyle 屬性

定義

取得屬性集合的參考,這些屬性定義描述密碼需求的文字外觀。

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

屬性值

TableItemStyle

包含屬性之 TableItemStyle 的參考,這些屬性定義描述密碼需求的文字外觀。

屬性

備註

屬性 PasswordHintStyle 會定義描述 控制項中 CreateUserWizard 密碼需求之文字的外觀。 此屬性是唯讀的;不過,您可以設定其傳回之 TableItemStyle 物件的屬性。 您可以在 格式 Property-Subproperty 中宣告設定這些屬性,其中 Subproperty 代表類別的屬性 TableItemStyle (例如, PasswordHintStyle-ForeColor) 。 例如,您可以在表單 Property.Subproperty 中以程式設計方式設定 屬性 () PasswordHintStyle.ForeColor

屬性 PasswordHintStyle 會定義屬性的外觀 PasswordHintText

屬性的 PasswordHintStyle 樣式設定會與控制項的 CreateUserWizard 樣式設定合併。 屬性中 PasswordHintStyle 套用的任何設定會覆寫 控制項屬性 CreateUserWizard 中的對應設定。

設定會覆寫 PasswordHintStyle 下列 CreateUserWizard 樣式屬性:

不過,當您使用範本來定義控制項的外觀 CreateUserWizard 時, PasswordHintStyle 屬性不會有任何作用。

適用於

另請參閱