MaskedTextProvider.IncludeLiterals Property


Gets or sets a value that indicates whether literal characters in the input mask should be included in the formatted string.

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

public bool IncludeLiterals { get; set; }

Property Value

Type: System.Boolean

true if literals are included; 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