ClassYearTokenValidationRule
Class
Represents the year validation rule in the mask.
Definition
Namespace:Telerik.Windows.Controls.MaskedInput.Tokens.DateTime
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
cs-api-definition
public class YearTokenValidationRule : ITokenValidationRule
Inheritance: objectYearTokenValidationRule
Implements:
Constructors
YearTokenValidationRule()
Declaration
cs-api-definition
public YearTokenValidationRule()
Properties
IsRequired
Gets whether the token is required or not.
Declaration
cs-api-definition
public bool IsRequired { get; }
Property Value
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.
Type
The type of the Token.
ValidChars
Available values for the token.
Declaration
cs-api-definition
public string ValidChars { get; }
Property Value
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.