RadControls for WinForms

The table below describe the mask characters that can be used when the MaskType property is set to Standard.

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 the character in the PromptChar property. For example, "$######.##" displays as a literal "$", accepts a numeric amount with six places and two places to the right of the decimal, i.e. $123456.56.

L

Accepts letters only. Escapes a mask character, turning it into a literal. "\\" is the escape sequence for a back slash. For example, "\# ###", i.e. "# 123".

?

Letter, optional.

&

Character, required.

C

Character, optional.

A

Alphanumeric, required. Accepts any symbol.

a

Alphanumeric, optional.

.

Decimal placeholder.

,

Thousands placeholder.

:

Time separator.

/

Date separator.

$

Currency symbol.

<

Shift down. Converts all characters that follow to lowercase.

>

Shift up. Converts all characters that follow to uppercase.

|

Disable a previous shift up or shift down.

\

Escape. Escapes a mask character, turning it into a literal. "\\" is the escape sequence for a backslash.

All other characters

All non-mask elements will appear as themselves within RadMaskedEditBox. Literals always occupy a static position in the mask at run time, and cannot be moved or deleted by the user