TextBox.UseSystemPasswordChar 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定值,指出在 TextBox 控制項中的文字是否應該顯示為預設密碼字元。
public:
property bool UseSystemPasswordChar { bool get(); void set(bool value); };
public bool UseSystemPasswordChar { get; set; }
member this.UseSystemPasswordChar : bool with get, set
Public Property UseSystemPasswordChar As Boolean
屬性值
如果 TextBox 控制項中的文字應顯示為預設的密碼字元,則為 true,否則為 false。
備註
屬性 UseSystemPasswordChar 的優先順序高於 PasswordChar 屬性。 每當 UseSystemPasswordChar 設定為 true 時,就會使用預設系統密碼字元,並忽略 的任何 PasswordChar 字元集。
重要
TextBox當 處於密碼模式時,因為 PasswordChar 、 UseSystemPasswordChar 或 ReadOnly 為 true ,則 TextBox 處於受限制模式。 在此模式中, ImeMode 會停用 ,但會快取目前的 ImeMode ,以便在從未限制的情況下 TextBox 還原。 切換 ReadOnly 是常見的案例。 在 ImeMode 控制項處於受限制模式時,會遮蔽 。 從設計工具的觀點來看, ImeMode 顯示的值是實際值。