MaskedTextProvider.IncludePrompt 属性

定义

获取或设置一个值,该值指示当显示带格式的字符串时是否使用 PromptChar 来表示缺少的用户输入。Gets or sets a value indicating whether PromptChar is used to represent the absence of user input when displaying the formatted string.

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

属性值

Boolean

如果提示字符用于表示未提供用户输入的位置,则为 true;否则为 false.true if the prompt character is used to represent the positions where no user input was provided; otherwise, false. 默认值为 trueThe default is true.

注解

IncludePromptIncludeLiterals 属性将确定在调用方法时是否显示提示和文本字符 ToStringThe IncludePrompt and IncludeLiterals properties will determine whether prompt and literal characters appear when calling the ToString method. 通过将这两个属性都设置为 false ,已分析的字符串将只表示用户输入的字符。By setting both of these properties to false, the parsed string will represent only the characters entered by the user.

适用于

另请参阅