共用方式為


MaskedTextProvider.AllowPromptAsInput 屬性

定義

會獲得一個值,指示提示字元是否應被視為有效的輸入字元。

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

屬性值

true 若使用者能進入 PromptChar 控制,則為 false。 預設值為 true

備註

AllowPromptAsInput屬性的值在建構子中MaskedTextProvider被設定。

即使 AllowPromptAsInputtrue,提示字元仍必須對遮罩當前位置有效,才能被接受。

適用於

另請參閱