TokenLocator
Class that manages the Mask Tokens.
Definition
Namespace:Telerik.Windows.Controls.MaskedInput.Tokens
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
public static class TokenLocator
Inheritance: objectTokenLocator
Methods
Adds a custom validation rule to the TokenLocator.
public static void AddCustomValidationRule(ITokenValidationRule rule)
Rule to be added.
Exceptions:Thrown when the rule is null, rule's token is empty or already exists such token.
Gets the first allowed char of ITokenValidationRule.
public static char GetFirstAllowedCharForTokenRule(char character, TokenTypes type)
Char of the Token.
typeTokenTypesType of the Rule.
Returns:Returns the first allowed char of ITokenValidationRule. If no rule is found, token char is returned.
Gets the last allowed char of ITokenValidationRule.
public static char GetLastAllowedCharForTokenRule(char character, TokenTypes type)
Char of the Token.
typeTokenTypesType of the ITokenValidationRule.
Returns:Returns the last allowed char of ITokenValidationRule. If no rule is found, token char is returned.
Gets a ITokenValidationRule by its char and type.
public static ITokenValidationRule GetTokenRule(char symbol, TokenTypes type)
Token char.
typeTokenTypesToken type.
Returns: