MaskedTextProvider.AllowPromptAsInput 屬性

定義

取得值,指出提示字元是否應視為有效輸入字元。

public:
 property bool AllowPromptAsInput { bool get(); };
public bool AllowPromptAsInput { get; }
member this.AllowPromptAsInput : bool
Public ReadOnly Property AllowPromptAsInput As Boolean

屬性值

如果使用者可以輸入 PromptChar 至控制項,則為 true,否則為 false。 預設為 true

備註

屬性 AllowPromptAsInput 的值是在建構函式中 MaskedTextProvider 設定。

AllowPromptAsInput即使 是 true,提示字元也必須對遮罩中的目前位置有效,才能接受。

適用於

另請參閱