Class RegexMaskTextBoxProvider
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RegexMaskTextBoxProvider : IMaskProvider
Constructors
RegexMaskTextBoxProvider(String, CultureInfo, RadMaskedEditBoxElement)
Initializes a new instance of the RegexMaskTextBoxProvider class.
Declaration
public RegexMaskTextBoxProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
Parameters
|
System.String
mask
The mask. |
|
System.Globalization.CultureInfo
culture
The culture. |
|
RadMaskedEditBoxElement
owner
The owner. |
Fields
regex
Declaration
protected Regex regex
Field Value
|
System.Text.RegularExpressions.Regex
|
Properties
AllowEmptyString
Gets or sets a value indicting whether empty strings are valid.
Declaration
public bool AllowEmptyString { get; set; }
Property Value
|
System.Boolean
|
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
|
System.Globalization.CultureInfo
A System.Globalization.CultureInfo containing the culture information associated with the input mask. |
Implements
ErrorMessage
Gets or sets the error message.
Declaration
public string ErrorMessage { get; set; }
Property Value
|
System.String
|
ErrorProvider
Gets or sets the error provider.
Declaration
public ErrorProvider ErrorProvider { get; set; }
Property Value
|
System.Windows.Forms.ErrorProvider
|
IncludePrompt
This provider should not implement this property and should thrown an exception.
Declaration
public bool IncludePrompt { get; set; }
Property Value
|
System.Boolean
|
Implements
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 Telerik.WinControls.UI.RegexMaskTextBoxProvider.CanSetError is true.
Declaration
public bool IsValid { get; }
Property Value
|
System.Boolean
|
Mask
Gets the input mask.
Declaration
public string Mask { get; }
Property Value
|
System.String
A System.String containing the full mask. |
Implements
PromptChar
This provider should not implement this property and should thrown an exception
Declaration
public char PromptChar { get; set; }
Property Value
|
System.Char
|
Implements
TextBoxItem
Gets the text box item.
Declaration
public RadTextBoxItem TextBoxItem { get; }
Property Value
|
RadTextBoxItem
|
Implements
Value
Gets or sets the value.
Declaration
public object Value { get; set; }
Property Value
|
System.Object
|
Implements
Methods
Click()
This provider should not implement this method and should thrown an exception.
Declaration
public bool Click()
Returns
|
System.Boolean
|
Implements
Clone()
Clones this instance.
Declaration
public IMaskProvider Clone()
Returns
|
IMaskProvider
The cloned instance. |
Implements
Delete()
This provider should not implement this method and should thrown an exception
Declaration
public bool Delete()
Returns
|
System.Boolean
|
Implements
KeyDown(Object, KeyEventArgs)
Occurs when a key is pressed.
Declaration
public void KeyDown(object sender, KeyEventArgs e)
Parameters
|
System.Object
sender
The sender. |
|
System.Windows.Forms.KeyEventArgs
e
Key event arguments. |
Implements
KeyPress(Object, KeyPressEventArgs)
Occurs when a key is pressed.
Declaration
public void KeyPress(object sender, KeyPressEventArgs e)
Parameters
|
System.Object
sender
The sender. |
|
System.Windows.Forms.KeyPressEventArgs
e
Key event arguments. |
Implements
ToString(Boolean, Boolean)
Returns the formatted string.
Declaration
public string ToString(bool includePrompt, bool includeLiterals)
Parameters
|
System.Boolean
includePrompt
Not used. |
|
System.Boolean
includeLiterals
Not used. |
Returns
|
System.String
The formatted System.String that includes all the assigned character values. |
Implements
UnwireEvents()
Detaches from events.
Declaration
public void UnwireEvents()
Validate(String)
Validates the given string value and applies it as if the value is valid.
Declaration
public bool Validate(string value)
Parameters
|
System.String
value
THe string value that is about to be set. |
Returns
|
System.Boolean
A value indicating whether the string value is valid. |
Implements
WireEvents()
Attaches to events.
Declaration
public void WireEvents()