Type | Description | |||
String | A string expression that indicates the editor's mask. |
Use the Mask property to filter characters during data input. Use the MaskChar property to change the masking character. If the Mask property is empty no filter is applied. The Mask property is composed by a combination of regular characters, literal escape characters, and masking characters. The Mask property can contain also alternative characters, or range rules. A literal escape character is preceded by a \ character, and it is used to display a character that is used in masking rules. Here's the list of all rules and masking characters:
Here's the list of all rules and masking characters.
The following sample shows how to mask an IP address:
Editor1.Mask = "{0,255}\.{0,255}\.{0,255}\.{0,255}"
The Mask property has effect for the following types: DropDown, Spin, Mask, Font, Button, PickEdit and LinkEdit.