MaskedTextProvider.IncludePrompt Property


Gets or sets a value indicating whether PromptChar is used to represent the absence of user input when displaying the formatted string.

Namespace:   System.ComponentModel
Assembly:  System (in System.dll)

public bool IncludePrompt { get; set; }

Property Value

Type: System.Boolean

true if the prompt character is used to represent the positions where no user input was provided; otherwise, false. The default is true.

The IncludePrompt and IncludeLiterals properties will determine whether prompt and literal characters appear when calling the ToString method. By setting both of these properties to false, the parsed string will represent only the characters entered by the user.

.NET Framework
Available since 2.0
Return to top