語言

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。

備註

IncludePrompt和 IncludeLiterals 屬性將決定呼叫ToString方法時是否會出現提示字元與字面字元。 將這兩個屬性都設為 false,解析後的字串將僅代表使用者輸入的字元。

適用於

另請參閱