Defines the mask for data entry.
Class: SftMask
Namespace: Softelvdm.SftMaskNET
Assembly: Softelvdm.SftMaskNET
public string Mask { get; set; }
Public Property Mask As StringThe mask, composed of input field tokens, single position tokens, special tokens and literal characters, or an empty string for a single-line edit control without a mask.
The default value is String.Empty.
Defines the mask for data entry.
Setting a new mask clears the contents. An invalid mask throws an ArgumentException, whose ParamName is "value" and whose message describes the error, usually with its position in the mask; the control keeps its previous mask.
Numeric fields start with a dollar sign: followed directly by the subtokens for a decimal field, by I for an integer field, or by X for a hexadecimal integer field. The subtokens follow in this order: ^ (spinning), C (calculator, decimal fields only), N (spinning stops at the ends instead of wrapping around), ( (decimal fields only) or - (negative numbers, not for hexadecimal fields), comma (digit grouping, not for hexadecimal fields), 0 (leading zeros), the number of digits, a period and the number of fraction digits (decimal fields only), and (min,max) (range, in hexadecimal for hexadecimal fields).
Single positions: # digit, 9 optional digit, ? letter, @ optional letter, & any character, ~ optional any character, A letter or digit, a optional letter or digit, [M...] one of the listed characters or ranges, [O...] optional one of them, \c the literal character c. Any other character is a literal.
Special tokens: = (inserting and deleting do not shift characters past this point), <p, <l and <u (password, lowercase and uppercase until >), | (the currency symbol of the culture), : and / (the time and date separators of the culture), !0 to !9 and !! (the range a Values entry reads and writes).
See Also SftMask Class | Classes | SftMask/NET 3.0