ClassRadMaskedNumericInput
Represents the RadMaskedNumericInput control.
Definition
Namespace:Telerik.Windows.Controls
Assembly:Telerik.Windows.Controls.Input.dll
Syntax:
[TelerikToolboxCategory("Input")]
[Themable]
public class RadMaskedNumericInput : RadMaskedInputBase
Inheritance: objectRadMaskedInputBaseRadMaskedNumericInput
Inherited Members
Constructors
RadMaskedNumericInput()
Initializes a new instance of the RadMaskedNumericInput class.
Declaration
public RadMaskedNumericInput()
Fields
AllowSkipPlaceholdersProperty
Identifies the AllowSkipPlaceholders dependency property.
Declaration
public static readonly DependencyProperty AllowSkipPlaceholdersProperty
Field Value
DependencyProperty
AutoFillNumberGroupSeparatorsProperty
Identifies the AutoFillNumberGroupSeparators dependency property.
Declaration
public static readonly DependencyProperty AutoFillNumberGroupSeparatorsProperty
Field Value
DependencyProperty
AutoFillZerosProperty
Identifies the AutoFillZeros dependency property.
Declaration
public static readonly DependencyProperty AutoFillZerosProperty
Field Value
DependencyProperty
ValueProperty
Identifies the Value dependency property.
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
DependencyProperty
Properties
AllowSkipPlaceholders
Gets or sets whether input can skip placeholders.
AutoFillNumberGroupSeparators
Gets or sets whether number group separators are auto filled in the mask.
Declaration
public bool AutoFillNumberGroupSeparators { get; set; }
Property Value
AutoFillZeros
Gets or sets whether trailing zeros should be auto filled.
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
IsPercentageValue
Gets or sets whether the number is percentage.
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.
Methods
CanModifyChar(char)
Gets a value indicating whether the char can be modified when no mask.
CanReplaceChar(char)
Gets a value indicating whether the char can be replaced when no mask.
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
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 int)
The internal value has changed and the Text has to be coerced against the ValueInternal.
CoerceTextOverride(ref int)
The value has changed and the Text has to be coerced against the value.
CoerceValueOverride()
The text has changed and the value has to be coerced against the text.
Declaration
[SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
protected override bool CoerceValueOverride()
Returns
Returns true if the value can be coerced.
Overrides
GetDecimalSeparatorIndex(string)
Gets the index of the decimal separator from a specific text.
GetRightOffset()
Gets the offset from the right.
GetValidCharOverride(char, ref int, bool?, out bool)
Gets the valid char for a position.
Declaration
protected override string GetValidCharOverride(char character, ref int position, bool? forwardSpin, out bool isValid)
Parameters
character
The character to be validated.
position
Position in the MaskedText to validate.
forwardSpin
bool?
True if a forward spin is applied, false for backward spin, null for no spin.
isValid
True if the character is valid for this position.
Returns
Returns the result valid character for the specified position.
Overrides
GetValueRankFromIndex(int)
Gets the rank of a number in the TextBox in respect to the caret.
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
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
Returns a value indicating whether event should be handled or not.
Overrides
HandlePasteNoMask(object, out object)
Handles paste operation in no-mask scenarios.
HandlePasteOverride(object, out object)
Handles the paste operation.
HandleSpin(int, bool?)
Handle the spin of the value.
HandleSpinNoMask(bool)
Handles the spin when no mask.
Declaration
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
protected override void HandleSpinNoMask(bool isUp)
Parameters
isUp
Overrides
HandleSubstractKey()
Handles the Subtract key.
Declaration
protected override bool HandleSubstractKey()
Returns
Returns a value indicating whether event should be handled or not.
Overrides
HandleUnknownKeyOverride(int)
Handles the key press of an Unknown key with a specific key code.
InsertCharNoMask(char)
Inserts a new character when no mask.
Declaration
protected override void InsertCharNoMask(char character)
Parameters
character
Overrides
InsertSeparatorsOverride(string, int[], string)
Inserts number group separators in the mask.
IsCharValid(char)
Gets a value indicating whether the char is valid when no mask.
IsSeparatorNoMask(char)
Gets a value indicating whether a char is a separator when no mask.
MoveCharactersInInsertBehaviorOverride(ref int, char, bool)
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
position
The position from which the move has to be done.
character
The character input at this position.
forward
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 event. This method is invoked whenever is set to true internally.
Declaration
protected override void OnInitialized(EventArgs e)
Parameters
e
The RoutedEventArgs that contains the event data.
OnSelectionOnFocus(SelectionOnFocus)
Executes when the focus is obtained.
Declaration
protected override int OnSelectionOnFocus(SelectionOnFocus selectionOnFocus)
Parameters
selectionOnFocus
The selection on focus.
Returns
Returns the selection start to be set when the focus is obtained.
Overrides
ParseMask()
Parses the Mask property and sets the MaskedText.
Declaration
[SuppressMessage("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
protected override string ParseMask()
Returns
Returns the parsed Mask.
Overrides
ReplaceChar(StringBuilder, ref int)
Replaces a char when no mask.
Declaration
protected override void ReplaceChar(StringBuilder text, ref int position)
Parameters
text
The text builder.
position
The position of the char.
Overrides
SetFromRightOffset(int)
Sets the offset from the right.
Declaration
protected override void SetFromRightOffset(int offset)
Parameters
offset
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
args
RoutedEventArgs
Returns
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.