ClassNumericCharacterTextBoxProvider
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class NumericCharacterTextBoxProvider : IMaskCharacterProvider
Inheritance: objectNumericCharacterTextBoxProvider
Implements:
Constructors
NumericCharacterTextBoxProvider(string, CultureInfo, RadNumericMaskFormatType, RadMaskedEditBoxElement)
Initializes a new instance of the NumericCharacterTextBoxProvider class using the specified mask and culture.
Declaration
public NumericCharacterTextBoxProvider(string mask, CultureInfo culture, NumericCharacterTextBoxProvider.RadNumericMaskFormatType numericType, RadMaskedEditBoxElement owner)
Parameters
mask
A string that represents the input mask.
culture
A CultureInfo that is used to set region-sensitive separator characters.
numericType
NumericCharacterTextBoxProvider.RadNumericMaskFormatType
The NumericCharacterTextBoxProvider.RadNumericMaskFormatType that represents the numeric mask format type.
owner
Properties
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 CultureInfo containing the culture information associated with the input mask.
Mask
Gets the input mask.
PercentageFloatValue
Gets the percentage floating point value.
PromptChar
Gets or sets the character used to represent the absence of user input.
Declaration
public char PromptChar { get; set; }
Property Value
The character used to prompt the user for input. The default is zero (0).
Implements
Methods
AllowAppendCharacters()
Determines whether additional characters can be appended to the existing text.
Declaration
protected virtual bool AllowAppendCharacters()
Returns
A value indicating whether additional characters can be appended.
Delete()
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.
EnsureMinusSign(string, string)
Ensures that minus sing is applied in front on the input string.
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
ParseText(string)
Parses given string.
ParseTextCore(string, out int, out MaskedTextResultHint)
Parses the given value and formats it according to the NumericCharacterTextBoxProvider.RadNumericMaskFormatType and the Mask.
Declaration
protected virtual string ParseTextCore(string value, out int testPosition, out MaskedTextResultHint resultHint)
Parameters
value
The string value.
testPosition
Not used.
resultHint
Indicates whether the parse was successful.
Returns
RemoveAt(int, int)
Removes characters between the two positions given as parameters.
Set(string, out int, out MaskedTextResultHint)
Sets the specified string within the formatted string, returning the status of the operation.
Declaration
public bool Set(string input, out int testPosition, out MaskedTextResultHint resultHint)
Parameters
input
The string value that replaces the existing value.
testPosition
Not used.
resultHint
A 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
ToString(bool, bool)
Returns the formatted string.
Validate(string)
Validates the given string value and applies it as if the value is valid.