Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class NumericMaskTextBoxProvider : IMaskProvider
Inheritance: objectNumericMaskTextBoxProvider
Implements:
Constructors
public NumericMaskTextBoxProvider(string mask, CultureInfo culture, RadMaskedEditBoxElement owner)
Fields
protected IMaskCharacterProvider provider
Properties
Gets the culture that determines the value of the localizable separators and placeholders in the input mask.
public CultureInfo Culture { get; }
A System.Globalization.CultureInfo containing the culture information associated with the input mask.
Implements:
Gets or sets a value indicating whether PromptChar is used to represent the absence of user input when displaying the formatted string.
public bool IncludePrompt { get; set; }
Implements:
Gets the input mask.
Gets or sets the character used to represent the absence of user input.
public char PromptChar { get; set; }
The character used to prompt the user for input.
Implements:
TextBoxItem
RadTextBoxItem
Gets the text box item.
public RadTextBoxItem TextBoxItem { get; }
Implements:
Methods
Clones this instance.
protected virtual IMaskCharacterProvider CreateNumericCharacterTextBoxProvider(string mask, CultureInfo culture, NumericCharacterTextBoxProvider.RadNumericMaskFormatType radNumericMaskFormatType, RadMaskedEditBoxElement owner)
Raises a delete operation over the selected text. If there is no selection, deletes the first symbol after the cursor. If there is no selection and the cursor is after the last character, does not remove anything.
Gets the NumericCharacterTextBoxProvider.RadNumericMaskFormatType from the given format string.
public static NumericCharacterTextBoxProvider.RadNumericMaskFormatType GetFormat(string formatString, CultureInfo culture)
The format string.
cultureCultureInfoThe culture.
Returns:NumericCharacterTextBoxProvider.RadNumericMaskFormatType
The NumericCharacterTextBoxProvider.RadNumericMaskFormatType.
Occurs when a key is pressed.
public void KeyDown(object sender, KeyEventArgs e)
The sender.
eKeyEventArgsKey event arguments.
Implements:
Occurs when a key is pressed.
public void KeyPress(object sender, KeyPressEventArgs e)
The sender.
eKeyPressEventArgsKey event arguments.
Implements:
Sets the specified string within the formatted string, returning the status of the operation.
public bool Set(string input, out int testPosition, out MaskedTextResultHint resultHint)
The string value that replaces the existing value.
testPositionintNot used.
resultHintMaskedTextResultHintA System.ComponentModel.MaskedTextResultHint that succinctly describes the result of the replacement operation. An output parameter.
Returns:true if the operation is successful, false if not.
Returns the formatted string, optionally including prompt and literal characters.
public string ToString(bool includePrompt, bool includeLiterals)
true to include prompt characters in the return string; otherwise, false.
includeLiteralsbooltrue to include literal characters in the return string; otherwise, false.
Returns:The formatted System.String that includes all the assigned character values and optionally includes literals and prompts.
Implements: