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