MaskedTextProvider.IncludeLiterals 屬性

定義

取得或設定值,指出輸入遮罩中的常值字元是否應該包含在格式化字串中。

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

屬性值

如果包含常值,則為 true,否則為 false。 預設為 true

備註

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

適用於

另請參閱