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

注解

IncludePrompt属性IncludeLiterals将确定调用ToString该方法时是否显示提示字符和文本字符。 通过将这两个属性都 false设置为,分析的字符串将仅表示用户输入的字符。

适用于

另请参阅