Class CharacterRequiredTokenValidationRule
Represents the character token validation rule.
Inheritance
Namespace: Telerik.Windows.Controls.MaskedInput.Tokens.Numeric
Assembly: Telerik.Windows.Controls.Input.dll
Syntax
public class CharacterRequiredTokenValidationRule : Object, ITokenValidationRule
Remarks
Any character is valid for this token rule. It is required.
Constructors
CharacterRequiredTokenValidationRule()
Declaration
public CharacterRequiredTokenValidationRule()
Properties
IsRequired
Gets whether the token is required or not.
Declaration
public bool IsRequired { get; }
Property Value
System.Boolean
|
Implements
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
public char Token { get; }
Property Value
System.Char
|
Implements
Type
The type of the Token.
Declaration
public TokenTypes Type { get; }
Property Value
TokenTypes
|
Implements
ValidChars
Available values for the token.
Declaration
public string ValidChars { get; }
Property Value
System.String
|
Implements
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
public bool IsValid(char character)
Parameters
System.Char
character
The token to check. |
Returns
System.Boolean
Returns true if the char is valid. |