Xceed DataGrid for WPF v7.3 Documentation
Xceed.Wpf.Controls Assembly / Xceed.Wpf.Controls Namespace / MaskedTextBox Class / ResetOnPrompt Property


In This Topic
    ResetOnPrompt Property
    In This Topic
    Gets or sets a value indicating if the character at the current caret position should be reset when the prompt character is pressed.
    Syntax
    'Declaration
     
    Public Property ResetOnPrompt As Boolean
    'Usage
     
    Dim instance As MaskedTextBox
    Dim value As Boolean
     
    instance.ResetOnPrompt = value
     
    value = instance.ResetOnPrompt
    public bool ResetOnPrompt {get; set;}

    Property Value

    true if the character at the current caret position should be reset; false if the prompt character is to be considered as a normal input character. By default, true.
    Remarks

    ResetOnPrompt takes precedence over the AllowPromptAsInput property:

    ResetOnPrompt value AllowPromptAsInput value Behavior
    true true The prompt character can be entered and it causes the current mask position to be reset.
    true false The prompt character can be entered and it causes the current mask position to be reset.
    false true

    The prompt character is processed as a standard input character.

    false false The prompt character is not a valid input character.

    Requirements

    Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also