Xceed Toolkit for .NET Maui v2.0 Documentation
Xceed.Maui.Toolkit Assembly / Xceed.Maui.Toolkit Namespace / MaskedTextBox Class / ValueFormat Property


In This Topic
    ValueFormat Property
    In This Topic
    Gets or sets the format that will be used when the MaskedTextBox's Value property is accessed.
    Syntax
    'Declaration
     
    
    Public Property ValueFormat As MaskedTextBoxValueFormat
    'Usage
     
    
    Dim instance As MaskedTextBox
    Dim value As MaskedTextBoxValueFormat
     
    instance.ValueFormat = value
     
    value = instance.ValueFormat
    public MaskedTextBoxValueFormat ValueFormat {get; set;}
    Remarks

    This can include literal characters, which are characters that are always displayed in the Mask, prompt characters, which are characters that are used to tell a user that a specific position in the TextBox must be filled, a combination of these two types of characters or neither of those two types of characters. For more information, see the MaskedTextBoxValueFormat enumeration.

    The default value is ExcludePromptAndLiterals

    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