ClassDigitTokenValidationRule
Represents the digit token validation rule.
Definition
Namespace:Telerik.Windows.Controls.MaskedInput.Tokens.Numeric
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
public class DigitTokenValidationRule : INumericTokenValidationRule, ITokenValidationRule
Inheritance: objectDigitTokenValidationRule
Implements:
Constructors
DigitTokenValidationRule()
Declaration
public DigitTokenValidationRule()
Properties
AllowsPrecision
Gets a value indicating whether the token allows precision.
IsRequired
Gets whether the token is required or not.
Declaration
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
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.