Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NMaskedTextBox Class / Mask Property


In This Topic
    Mask Property
    In This Topic
    Gets/Sets the input mask to use at runtime.
    Syntax
    'Declaration
     
    
    Public Property Mask As System.String
    'Usage
     
    
    Dim instance As NMaskedTextBox
    Dim value As System.String
     
    instance.Mask = value
     
    value = instance.Mask
    public System.string Mask {get; set;}
    Remarks
    Mask Character Description
    0 Digit, required. This element will accept any single digit between 0 and 9.
    9 Digit or space, optional.
    # Digit or space, optional. If this position is blank in the mask, it will be rendered as a space in the Text property. Plus (+) and minus (-) signs are allowed.
    L Letter, required. Restricts input to the ASCII letters a-z and A-Z. This mask element is equivalent to [a-zA-Z] in regular expressions.
    ? Letter, optional. Restricts input to the ASCII letters a-z and A-Z. This mask element is equivalent to [a-zA-Z]? in regular expressions.
    & Character, required.
    C Character, optional.
    A Alphanumeric, required.
    a Alphanumeric, optional.
    . Decimal placeholder. The actual display character used will be the decimal symbol appropriate to the format provider, as determined by the control's FormatProvider property.
    , Thousands placeholder. The actual display character used will be the thousands placeholder appropriate to the format provider, as determined by the control's FormatProvider property.
    All other characters Literals. All non-mask elements will appear as themselves within NMaskedTextBox. Literals always occupy a static position in the mask at run time, and cannot be moved or deleted by the user.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also