New to Telerik UI for WPFStart a free 30-day trial

Represents the validation rule for a token in the mask.

Definition

Properties

Gets whether the token is required or not.

C#
bool IsRequired { get; }
Remarks:

If the token is required, then if the position of that token is empty, the validation will fail. If the token is not required, then this position can be left empty.

The char of the Token.

C#
char Token { get; }

The type of the Token.

C#
TokenTypes Type { get; }

Available values for the token.

C#
string ValidChars { get; }
Remarks:

This is used when spinning the value validated against that token.

Methods

Checks whether a given char is valid against this token rule.

C#
bool IsValid(char character)
Parameters:characterchar

The token to check.

Returns:

bool

Returns true if the char is valid.