Class RadMaskedNumericInput
Represents the RadMaskedNumericInput control.
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.Input.dll
Syntax
[TelerikToolboxCategory("Input")]
[Themable]
public class RadMaskedNumericInput : RadMaskedInputBase, IThemable
Constructors
RadMaskedNumericInput()
Initializes a new instance of the Rad
Declaration
public RadMaskedNumericInput()
Fields
AllowSkipPlaceholdersProperty
Identifies the AllowSkipPlaceholders dependency property.
Declaration
public static readonly DependencyProperty AllowSkipPlaceholdersProperty
Field Value
System.
|
AutoFillNumberGroupSeparatorsProperty
Identifies the AutoFillNumberGroupSeparators dependency property.
Declaration
public static readonly DependencyProperty AutoFillNumberGroupSeparatorsProperty
Field Value
System.
|
AutoFillZerosProperty
Identifies the AutoFillZeros dependency property.
Declaration
public static readonly DependencyProperty AutoFillZerosProperty
Field Value
System.
|
ValueProperty
Identifies the Value dependency property.
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
System.
|
Properties
AllowSkipPlaceholders
Gets or sets whether input can skip placeholders.
Declaration
public bool AllowSkipPlaceholders { get; set; }
Property Value
System.
|
AutoFillNumberGroupSeparators
Gets or sets whether number group separators are auto filled in the mask.
Declaration
public bool AutoFillNumberGroupSeparators { get; set; }
Property Value
System.
|
AutoFillZeros
Gets or sets whether trailing zeros should be auto filled.
Declaration
public bool AutoFillZeros { get; set; }
Property Value
System.
|
DecimalSeparator
The Decimal separator for the current culture.
Declaration
protected Separator DecimalSeparator { get; set; }
Property Value
InputBehaviorResolved
Gets or sets the resolved InputBehavior.
Declaration
protected override InputBehavior InputBehaviorResolved { get; }
Property Value
Overrides
IsNegativeValue
Gets or sets whether the number is negative. IsNegative returns True for negative nulls too. In no-masked scenarios, "()", "-" are treated as negative nulls.
Declaration
protected virtual bool IsNegativeValue { get; set; }
Property Value
System.
|
IsPercentageValue
Gets or sets whether the number is percentage.
Declaration
protected bool IsPercentageValue { get; set; }
Property Value
System.
|
NegativeSign
The Negative symbol for the current culture.
Declaration
protected Separator NegativeSign { get; set; }
Property Value
NumberSeparator
The Number separator for the current culture.
Declaration
protected Separator NumberSeparator { get; set; }
Property Value
PercentageSign
The Percentage symbol.
Declaration
protected Separator PercentageSign { get; set; }
Property Value
Precision
The precision of the value.
Declaration
protected int Precision { get; set; }
Property Value
System.
|
Value
Gets or sets the Value property.
Declaration
public Nullable<double> Value { get; set; }
Property Value
System.
|
Methods
CanModifyChar(Char)
Gets a value indicating whether the char can be modified when no mask.
Declaration
protected override bool CanModifyChar(char character)
Parameters
System.
|
Returns
System.
|
Overrides
CanReplaceChar(Char)
Gets a value indicating whether the char can be replaced when no mask.
Declaration
protected override bool CanReplaceChar(char character)
Parameters
System.
|
Returns
System.
|
Overrides
ClearSelectionNoMask()
Clears the selection when no mask.
Declaration
protected override void ClearSelectionNoMask()
Overrides
CoerceDisplayTextOverride()
The text has changed and the DisplayText has to be coerced against the Text.
Declaration
protected override string CoerceDisplayTextOverride()
Returns
System. Returns the display text. |
Overrides
CoerceInternalValueFromStronglyTypeValueOverride()
Coerces the ValueInternal property from the Value property.
Declaration
protected override void CoerceInternalValueFromStronglyTypeValueOverride()
Overrides
CoerceStronglyTypeValueFromInternalValueOverride()
Coerces the Value property from the ValueInternal property.
Declaration
protected override void CoerceStronglyTypeValueFromInternalValueOverride()
Overrides
CoerceTextInternalOverride(ref Int32)
The internal value has changed and the Text has to be coerced against the ValueInternal.
Declaration
protected override string CoerceTextInternalOverride(ref int selectionStart)
Parameters
System.
|
Returns
System. Returns the string coerced from ValueInternal. |
Overrides
CoerceTextOverride(ref Int32)
The value has changed and the Text has to be coerced against the value.
Declaration
protected override string CoerceTextOverride(ref int selectionStart)
Parameters
System.
|
Returns
System. Returns the string to be coerced. |
Overrides
CoerceValueOverride()
The text has changed and the value has to be coerced against the text.
Declaration
protected override bool CoerceValueOverride()
Returns
System. Returns true if the value can be coerced. |
Overrides
GetDecimalSeparatorIndex(String)
Gets the index of the decimal separator from a specific text.
Declaration
protected int GetDecimalSeparatorIndex(string text)
Parameters
System. The text to search in. |
Returns
System. Returns the index of the Decimal separator. |
GetRightOffset()
Gets the offset from the right.
Declaration
protected override int GetRightOffset()
Returns
System.
|
Overrides
GetValidCharOverride(Char, ref Int32, Nullable<Boolean>, out Boolean)
Gets the valid char for a position.
Declaration
protected override string GetValidCharOverride(char character, ref int position, Nullable<bool> forwardSpin, out bool isValid)
Parameters
System. The character to be validated. |
System. Position in the MaskedText to validate. |
System. True if a forward spin is applied, false for backward spin, null for no spin. |
System. True if the character is valid for this position. |
Returns
System. Returns the result valid character for the specified position. |
Overrides
GetValueRankFromIndex(Int32)
Gets the rank of a number in the TextBox in respect to the caret.
Declaration
protected int GetValueRankFromIndex(int index)
Parameters
System. The index of the caret. |
Returns
System. Returns the rank. |
HandleBackKeyNoMask()
Handles the Back key when no mask.
Declaration
protected override void HandleBackKeyNoMask()
Overrides
HandleClearOverride()
Called, when the Clear command is invoked.
Declaration
protected override void HandleClearOverride()
Overrides
HandleDivideKey()
Handles the Divide key.
Declaration
protected override bool HandleDivideKey()
Returns
System. Returns a value indicating whether event should be handled or not. |
Overrides
HandleLeftKey()
Handles the left key down.
Declaration
protected override void HandleLeftKey()
Overrides
HandleMultiplyKey()
Handles the Multiply key.
Declaration
protected override bool HandleMultiplyKey()
Returns
System. Returns a value indicating whether event should be handled or not. |
Overrides
HandlePasteNoMask(Object, out Object)
Handles paste operation in no-mask scenarios.
Declaration
protected override bool HandlePasteNoMask(object value, out object returnString)
Parameters
System.
|
System.
|
Returns
System.
|
Overrides
HandlePasteOverride(Object, out Object)
Handles the paste operation.
Declaration
protected override bool HandlePasteOverride(object value, out object returnString)
Parameters
System. The value to be pasted. |
System. Returns the string representation of the value. |
Returns
System. Returns true if the value can be pasted. |
Overrides
HandleSpin(Int32, Nullable<Boolean>)
Handle the spin of the value.
Declaration
protected override void HandleSpin(int position, Nullable<bool> forwardSpin)
Parameters
System. Position of spin. |
System. Direction of spin. |
Overrides
HandleSpinNoMask(Boolean)
Handles the spin when no mask.
Declaration
protected override void HandleSpinNoMask(bool isUp)
Parameters
System.
|
Overrides
HandleSubstractKey()
Handles the Subtract key.
Declaration
protected override bool HandleSubstractKey()
Returns
System. Returns a value indicating whether event should be handled or not. |
Overrides
HandleUnknownKeyOverride(Int32)
Handles the key press of an Unknown key with a specific key code.
Declaration
protected override bool HandleUnknownKeyOverride(int keyCode)
Parameters
System. Key's key code. |
Returns
System. Returns true if the key should not be processed. |
Overrides
InsertCharNoMask(Char)
Inserts a new character when no mask.
Declaration
protected override void InsertCharNoMask(char character)
Parameters
System.
|
Overrides
InsertSeparatorsOverride(String, Int32[], String)
Inserts number group separators in the mask.
Declaration
protected static string InsertSeparatorsOverride(string mask, int[] groupSizes, string groupSeparator)
Parameters
System. The mask text. |
System. The group sizes. |
System. The group separator. |
Returns
System. Returns the modified string. |
IsCharValid(Char)
Gets a value indicating whether the char is valid when no mask.
Declaration
protected override bool IsCharValid(char character)
Parameters
System. The character. |
Returns
System.
|
Overrides
IsSeparatorNoMask(Char)
Gets a value indicating whether a char is a separator when no mask.
Declaration
protected override bool IsSeparatorNoMask(char character)
Parameters
System.
|
Returns
System.
|
Overrides
MoveCharactersInInsertBehaviorOverride(ref Int32, Char, Boolean)
Moves a group characters from the specified position to the left one position from the last Placeholder.
Declaration
protected override void MoveCharactersInInsertBehaviorOverride(ref int position, char character, bool forward)
Parameters
System. The position from which the move has to be done. |
System. The character input at this position. |
System. The direction of the moving. |
Overrides
Remarks
The method expects the text after the move to the set to the internal TextBox.
OnCultureChanged()
Executed when the Culture changes.
Declaration
protected override void OnCultureChanged()
Overrides
OnInitialized(EventArgs)
Raises the System.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
System. The System. |
OnSelectionOnFocus(SelectionOnFocus)
Executes when the focus is obtained.
Declaration
protected override int OnSelectionOnFocus(SelectionOnFocus selectionOnFocus)
Parameters
Selection The selection on focus. |
Returns
System. Returns the selection start to be set when the focus is obtained. |
Overrides
ParseMask()
Parses the Mask property and sets the MaskedText.
Declaration
protected override string ParseMask()
Returns
System. Returns the parsed Mask. |
Overrides
ReplaceChar(StringBuilder, ref Int32)
Replaces a char when no mask.
Declaration
protected override void ReplaceChar(StringBuilder text, ref int position)
Parameters
System. The text builder. |
System. The position of the char. |
Overrides
SetFromRightOffset(Int32)
Sets the offset from the right.
Declaration
protected override void SetFromRightOffset(int offset)
Parameters
System.
|
Overrides
ToggleNegativeSignKey()
Toggles the visibility of the Negative symbol.
Declaration
protected void ToggleNegativeSignKey()
ValueChangingOverride(RoutedEventArgs)
Performs a pre-value changing checking whether the inherited control allows the ValueChanging(ed) events to be raised.
Declaration
protected override bool ValueChangingOverride(RoutedEventArgs args)
Parameters
System.
|
Returns
System. Returns a boolean flag whether the value change has to be handled or not. |
Overrides
Remarks
If false is returns, the value change proceeds. If true is returned, the update is terminated.