Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class NumericCharacterTextBoxProvider : IMaskCharacterProvider
Inheritance: objectNumericCharacterTextBoxProvider
Implements:
Constructors
Initializes a new instance of the NumericCharacterTextBoxProvider class using the specified mask and culture.
public NumericCharacterTextBoxProvider(string mask, CultureInfo culture, NumericCharacterTextBoxProvider.RadNumericMaskFormatType numericType, RadMaskedEditBoxElement owner)
A string that represents the input mask.
cultureCultureInfoA CultureInfo that is used to set region-sensitive separator characters.
numericTypeNumericCharacterTextBoxProvider.RadNumericMaskFormatTypeThe NumericCharacterTextBoxProvider.RadNumericMaskFormatType that represents the numeric mask format type.
ownerRadMaskedEditBoxElementProperties
Gets the culture that determines the value of the localizable separators and placeholders in the input mask.
public CultureInfo Culture { get; }
A CultureInfo containing the culture information associated with the input mask.
Gets the input mask.
Gets the percentage floating point value.
public double PercentageFloatValue { get; }
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. The default is zero (0).
Implements:
Methods
Determines whether additional characters can be appended to the existing text.
protected virtual bool AllowAppendCharacters()
A value indicating whether additional characters can be appended.
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.
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:
Parses the given value and formats it according to the NumericCharacterTextBoxProvider.RadNumericMaskFormatType and the Mask.
protected virtual string ParseTextCore(string value, out int testPosition, out MaskedTextResultHint resultHint)
The string value.
testPositionintNot used.
resultHintMaskedTextResultHintIndicates whether the parse was successful.
Returns:Removes characters between the two positions given as parameters.
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.
Implements: