ClassRegexMaskTextBoxProvider
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RegexMaskTextBoxProvider : IMaskProvider
Inheritance: objectRegexMaskTextBoxProvider
Derived Classes:
Implements:
Constructors
RegexMaskTextBoxProvider(string, CultureInfo, RadMaskedEditBoxElement)
Initializes a new instance of the RegexMaskTextBoxProvider class.
Declaration
public RegexMaskTextBoxProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
Parameters
mask
The mask.
culture
The culture.
owner
The owner.
Fields
Properties
AllowEmptyString
Gets or sets a value indicting whether empty strings are valid.
Culture
Gets the culture that determines the value of the localizable separators and placeholders in the input mask.
Declaration
public CultureInfo Culture { get; }
Property Value
A System.Globalization.CultureInfo containing the culture information associated with the input mask.
Implements
ErrorMessage
Gets or sets the error message.
ErrorProvider
Gets or sets the error provider.
Declaration
public ErrorProvider ErrorProvider { get; set; }
Property Value
IsValid
Gets a value indicating whether the text matches the regular expression created using the Mask Sets an error if there is no match and is true.
Mask
Gets the input mask.
TextBoxItem
Gets the text box item.
Declaration
public RadTextBoxItem TextBoxItem { get; }
Property Value
RadTextBoxItem
Implements
Methods
Clone()
Clones this instance.
Declaration
public IMaskProvider Clone()
Returns
The cloned instance.
Implements
KeyDown(object, KeyEventArgs)
Occurs when a key is pressed.
Declaration
public void KeyDown(object sender, KeyEventArgs e)
Parameters
sender
The sender.
e
Key event arguments.
Implements
KeyPress(object, KeyPressEventArgs)
Occurs when a key is pressed.
Declaration
public void KeyPress(object sender, KeyPressEventArgs e)
Parameters
sender
The sender.
e
Key event arguments.
Implements
ToString(bool, bool)
Returns the formatted string.
Validate(string)
Validates the given string value and applies it as if the value is valid.