MaskedTextProvider.AllowPromptAsInput Property


Gets a value indicating whether the prompt character should be treated as a valid input character or not.

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

public bool AllowPromptAsInput { get; }

Property Value

Type: System.Boolean

true if the user can enter PromptChar into the control; otherwise, false. The default is true.

The AllowPromptAsInput property's value is set in the MaskedTextProvider constructor.

Even when AllowPromptAsInput is true, the prompt character must be valid for the current location in the mask in order to be accepted.

.NET Framework
Available since 2.0
Return to top