MaskedTextProvider.IncludePrompt 屬性

定義

取得或設定值,指出 PromptChar 是否用來表示,在顯示格式化字串時使用者輸入項目不存在。

public:
 property bool IncludePrompt { bool get(); void set(bool value); };
public bool IncludePrompt { get; set; }
member this.IncludePrompt : bool with get, set
Public Property IncludePrompt As Boolean

屬性值

如果提示字元用來表示未提供使用者輸入的位置,則為 true,否則為 false。 預設為 true

備註

IncludePromptIncludeLiterals 屬性會決定呼叫 ToString 方法時是否會出現提示字元和常值字元。 藉由將這兩個屬性設定為 false,剖析的字串只會代表使用者輸入的字元。

適用於

另請參閱