Interface ITokenValidationRule
Represents the validation rule for a token in the mask.
Namespace: Telerik.Windows.Controls.MaskedInput.Tokens
Assembly: Telerik.Windows.Controls.Input.dll
Syntax
public interface ITokenValidationRule
Properties
IsRequired
Gets whether the token is required or not.
Declaration
bool IsRequired { get; }
Property Value
System.Boolean
|
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.
Token
The char of the Token.
Declaration
char Token { get; }
Property Value
System.Char
|
Type
ValidChars
Available values for the token.
Declaration
string ValidChars { get; }
Property Value
System.String
|
Remarks
This is used when spinning the value validated against that token.
Methods
IsValid(Char)
Checks whether a given char is valid against this token rule.
Declaration
bool IsValid(char character)
Parameters
System.Char
character
The token to check. |
Returns
System.Boolean
Returns true if the char is valid. |