RadSpinElement
Represents a numeric up/down element that provides spinning functionality for numeric value input.
The RadSpinElement class is a simple wrapper for the numeric up/down element class.
The RadSpinElement acts to transfer events to and from its corresponding numeric up/down element instance.
The numeric up/down element which is essentially the RadSpinElement control may be nested in other telerik controls.
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax:
public class RadSpinElement : RadEditorElement , INotifyPropertyChanged , ICustomTypeDescriptor , ISupportSystemSkin , IBindableComponent , IComponent , IDisposable , ISupportDrag , ISupportDrop , IShortcutProvider , IStylableElement , IStylableNode
Inheritance:
object DisposableObject RadObject RadElement VisualElement RadComponentElement RadItem RadEditorElement RadSpinElement
Derived Classes:
BaseSpinEditorElement RadSpinEditorElement
Implements:
IBindableComponent IComponent ICustomTypeDescriptor IDisposable INotifyPropertyChanged IShortcutProvider IStylableElement IStylableNode ISupportDrag ISupportDrop ISupportSystemSkin Show more
Inherited Members
RadItem.KeyDownEvent RadItem.KeyPressEvent RadItem.KeyUpEvent RadItem.FocusCommand RadItem.ActionCommand RadItem.UseDefaultDisabledPaintProperty RadItem.TextProperty RadItem.TextOrientationProperty RadItem.FlipTextProperty RadItem.IsAddNewItemProperty RadItem.ToolTipTextProperty RadItem.EnableElementShadowProperty RadItem.ShadowDepthProperty RadItem.ShadowColorProperty RadItem.IsPaintingRipple RadItem.EnableRippleAnimationProperty RadItem.RippleAnimationColorProperty RadItem.EnableFocusBorderProperty RadItem.FocusBorderColorProperty RadItem.FocusBorderWidthProperty RadItem.EnableFocusBorderAnimationProperty RadItem.EnableHighlightProperty RadItem.HighlightColorProperty RadItem.EnableBorderHighlightProperty RadItem.BorderHighlightColorProperty RadItem.BorderHighlightThicknessProperty RadItem.VisualStateProperty RadItem.SetOwnerCollection(RadItemOwnerCollection) RadItem.Select() RadItem.OnSelect() RadItem.Deselect() RadItem.OnDeselect() RadItem.DoKeyDown(KeyEventArgs) RadItem.DoKeyPress(KeyPressEventArgs) RadItem.DoKeyUp(KeyEventArgs) RadItem.OnKeyUp(KeyEventArgs) RadItem.RaiseBubbleEvent(RadElement, RoutedEventArgs) RadItem.OnPropertyChanging(RadPropertyChangingEventArgs) RadItem.OnEnabledChanged(RadPropertyChangedEventArgs) RadItem.OnTextChanging(TextChangingEventArgs) RadItem.OnTextOrientationChanged(EventArgs) RadItem.OnFlipTextChanged(EventArgs) RadItem.PaintOverride(IGraphics, Rectangle, float, SizeF, bool) RadItem.OnMouseDown(MouseEventArgs) RadItem.OnMouseUp(MouseEventArgs) RadItem.OnMouseMove(MouseEventArgs) RadItem.OnMouseLeave(EventArgs) RadItem.StartRippleAnimation(MouseEventArgs) RadItem.UpdateFocusBorder(bool) RadItem.ContainsText() RadItem.ShouldSerializeProperty(PropertyDescriptor) RadItem.ProcessDialogKey(Keys) RadItem.ProcessCmdKey(ref Message, Keys) RadItem.RaiseKeyDown(KeyEventArgs) RadItem.RaiseKeyPress(KeyPressEventArgs) RadItem.RaiseKeyUp(KeyEventArgs) RadItem.ReplaceDefaultDescriptors(PropertyDescriptorCollection) RadItem.CallOnGesture(GestureEventArgs) RadItem.OnGesture(GestureEventArgs) RadItem.OnTwoFingerTapGesture(GestureEventArgs) RadItem.OnPressAndTapGesture(PressAndTapGestureEventArgs) RadItem.OnPanGesture(PanGestureEventArgs) RadItem.OnRotateGesture(RotateGestureEventArgs) RadItem.OnZoomGesture(ZoomGestureEventArgs) RadItem.CanDragCore(Point) RadItem.GetDragContextCore() RadItem.GetDragHintCore() RadItem.ProcessDragDrop(Point, ISupportDrag) RadItem.ProcessDragOver(Point, ISupportDrag) RadItem.ProcessDragEnter(Point, ISupportDrag) RadItem.ProcessDragLeave(Point, ISupportDrag) RadItem.UpdateOnShortcutsChanged() RadItem.CanHandleShortcut(ShortcutEventArgs) RadItem.IsOnActiveForm(Control, bool) RadItem.SetThemeValueOverride(RadProperty, object, string) RadItem.SetThemeValueOverride(RadProperty, object, string, string) RadItem.SetThemeValueOverride(RadProperty, object, string, Type) RadItem.ResetThemeValueOverride(RadProperty) RadItem.ResetThemeValueOverride(RadProperty, string) RadItem.ResetThemeValueOverrides() RadItem.GetAvailableVisualStates() RadItem.ShouldFallbackToDefaultTheme() RadItem.UseDefaultDisabledPaint RadItem.TextOrientation RadItem.FlipText RadItem.CanHaveOwnStyle RadItem.Selectable RadItem.DefaultAutoToolTip RadItem.ShouldHandleMouseInput RadItem.KeyTip RadItem.ParentItem RadItem.ShortcutsHandler RadItem.EnableElementShadow RadItem.ShadowDepth RadItem.ShadowColor RadItem.EnableRippleAnimation RadItem.RippleAnimationColor RadItem.EnableFocusBorder RadItem.FocusBorderColor RadItem.FocusBorderWidth RadItem.EnableFocusBorderAnimation RadItem.EnableHighlight RadItem.HighlightColor RadItem.EnableBorderHighlight RadItem.BorderHighlightColor RadItem.BorderHighlightThickness RadItem.MnemonicText RadItem.ToolTipText RadItem.ThemeRole RadItem.VisualState RadItem.StateManager RadItem.AllowDrag RadItem.AllowDrop RadItem.Shortcuts RadItem.AccessibleDescription RadItem.AccessibleName RadItem.AccessibleRole RadItem.TextChanging RadItem.TextChanged RadItem.TextOrientationChanged RadItem.FlipTextChanged RadItem.QueryAccessibilityHelp RadItem.KeyPress RadItem.KeyUp RadItem.ZoomGesture RadItem.RotateGesture RadItem.PanGesture RadItem.TwoFingerTapGesture RadItem.PressAndTapGesture RadComponentElement.ToString() RadComponentElement.GetService(Type) RadComponentElement.CanRaiseEvents RadComponentElement.Container RadComponentElement.DesignMode RadComponentElement.Site RadComponentElement.DataBindings VisualElement.DefaultSizeProperty VisualElement.ForeColorProperty VisualElement.BackColorProperty VisualElement.FontProperty VisualElement.SmoothingModeProperty VisualElement.OpacityProperty VisualElement.CustomFontProperty VisualElement.CustomFontSizeProperty VisualElement.CustomFontStyleProperty VisualElement.OnFontChanged(EventArgs) VisualElement.PaintElement(IGraphics, float, SizeF) VisualElement.PaintChildren(IGraphics, Rectangle, float, SizeF, bool) VisualElement.PrePaintElement(IGraphics) VisualElement.PostPaintElement(IGraphics) VisualElement.GetScaledFont(float) VisualElement.GetScaledFont(float, Font) VisualElement.DefaultSize VisualElement.ForeColor VisualElement.BackColor VisualElement.Font VisualElement.CustomFont VisualElement.CustomFontSize VisualElement.CustomFontStyle VisualElement.SmoothingMode VisualElement.Opacity VisualElement.FontChanged RadElement.BoundsProperty RadElement.BorderThicknessProperty RadElement.PaddingProperty RadElement.MarginProperty RadElement.AlignmentProperty RadElement.AutoSizeModeProperty RadElement.FitToSizeModeProperty RadElement.MinSizeProperty RadElement.EnabledProperty RadElement.CanFocusProperty RadElement.IsItemFocusedProperty RadElement.IsFocusedProperty RadElement.IsMouseOverProperty RadElement.IsMouseOverElementProperty RadElement.IsMouseDownProperty RadElement.ShouldPaintProperty RadElement.VisibilityProperty RadElement.NameProperty RadElement.ClassProperty RadElement.ClipDrawingProperty RadElement.ShapeProperty RadElement.MouseClickedEvent RadElement.MouseDoubleClickedEvent RadElement.MouseDownEvent RadElement.MouseUpEvent RadElement.MouseWheelEvent RadElement.ChildElementAddedEvent RadElement.ParentChangedEvent RadElement.BoundsChangedEvent RadElement.VisibilityChangingEvent RadElement.EnabledChangedEvent RadElement.ControlChangedEvent RadElement.BackgroundShapeProperty RadElement.BackgroundShapePaintModeProperty RadElement.ContainsFocusProperty RadElement.ContainsMouseProperty RadElement.MaxSizeProperty RadElement.RightToLeftProperty RadElement.AutoSizeProperty RadElement.ZIndexProperty RadElement.AngleTransformProperty RadElement.ScaleTransformProperty RadElement.PositionOffsetProperty RadElement.TagProperty RadElement.StretchHorizontallyProperty RadElement.StretchVerticallyProperty RadElement.UseCompatibleTextRenderingProperty RadElement.ClickModeProperty RadElement.styleVersion RadElement.paintSystemSkin RadElement.SetPropertyValueCommand RadElement.GetPropertyValueCommand RadElement.StyleProperty RadElement.CallCreateChildElements() RadElement.SuspendReferenceUpdate() RadElement.ResumeReferenceUpdate() RadElement.OnLoad(bool) RadElement.LoadCore() RadElement.OnLoaded() RadElement.OnUnload(ComponentThemableElementTree, bool) RadElement.UnloadCore(ComponentThemableElementTree) RadElement.OnUnloaded(ComponentThemableElementTree) RadElement.OnElementTreeChanged(ComponentThemableElementTree) RadElement.OnBeginDispose() RadElement.SetParent(RadElement) RadElement.OnParentChanged(RadElement) RadElement.UpdateReferences(ComponentThemableElementTree, bool, bool) RadElement.ResetLayout(bool) RadElement.HasInvisibleAncestor() RadElement.ResetLayoutCore() RadElement.InvalidateArrange() RadElement.InvalidateArrange(bool) RadElement.InvalidateMeasure() RadElement.InvalidateMeasure(bool) RadElement.UpdateLayout() RadElement.SuspendLayout() RadElement.SuspendLayout(bool) RadElement.ResumeLayout(bool) RadElement.ResumeLayout(bool, bool) RadElement.Arrange(RectangleF) RadElement.Measure(SizeF) RadElement.SetBounds(Rectangle) RadElement.SetBounds(int, int, int, int) RadElement.GetBoundingRectangle(Size) RadElement.GetBoundingRectangle(Rectangle) RadElement.GetDesiredSize(bool) RadElement.PointToScreen(Point) RadElement.PointFromScreen(Point) RadElement.PointToControl(Point) RadElement.PointFromControl(Point) RadElement.LocationToControl() RadElement.RectangleToScreen(Rectangle) RadElement.HitTest(Point) RadElement.OnRenderSizeChanged(SizeChangedInfo) RadElement.OnChildDesiredSizeChanged(RadElement) RadElement.OnLayoutPropertyChanged(RadPropertyChangedEventArgs) RadElement.ArrangeCore(RectangleF) RadElement.MeasureCore(SizeF) RadElement.ShouldArrangeChild(RadElement) RadElement.ArrangeOverride(SizeF) RadElement.ShouldMeasureChild(RadElement) RadElement.MeasureChildren(SizeF) RadElement.GetArrangeRect(RectangleF) RadElement.CanExecuteLayoutOperation() RadElement.CalcLayoutOffset(PointF) RadElement.LockBounds() RadElement.UnlockBounds() RadElement.SetBoundsCore(Rectangle) RadElement.IsInValidState(bool) RadElement.Invalidate() RadElement.Invalidate(bool) RadElement.GetInvalidateBounds() RadElement.NotifyInvalidate(RadElement) RadElement.OnTransformationInvalidated() RadElement.PerformLayoutTransformation(ref RadMatrix) RadElement.PerformPaintTransformation(ref RadMatrix) RadElement.IsInGetAsBitmap() RadElement.PaintElementSkin(IGraphics) RadElement.PaintBackgroundShape(IGraphics) RadElement.PostPaintChildren(IGraphics, Rectangle, float, SizeF) RadElement.PaintChild(RadElement, IGraphics, Rectangle, float, SizeF, bool) RadElement.PaintShadow(RadElement, IGraphics) RadElement.PaintShadowCore(Graphics, Rectangle, RadItem) RadElement.GetShadowRect(ref Rectangle, int) RadElement.PaintFocusCues(IGraphics, Rectangle) RadElement.GetAsBitmap(IGraphics, Brush, float, SizeF) RadElement.GetAsTransformedBitmap(IGraphics, Brush, float, SizeF) RadElement.GetAsTransformedBitmap(Brush, float, SizeF) RadElement.GetAsTransformedBitmap(Rectangle, Brush, float, SizeF) RadElement.GetAsBitmapEx(Color, float, SizeF) RadElement.GetAsBitmapEx(Brush, float, SizeF) RadElement.GetAsBitmap(Brush, float, SizeF) RadElement.IsInVisibleClipBounds(Rectangle) RadElement.SetClipping(Graphics) RadElement.GetClipRect() RadElement.ShouldPaintChild(RadElement) RadElement.GetFocusRect() RadElement.GetCurrentShape() RadElement.GetPaintRectangle(float, float, SizeF) RadElement.GetPatchedRect(RectangleF, float, SizeF) RadElement.GetXPVisualStyle() RadElement.GetVistaVisualStyle() RadElement.InitializeSystemSkinPaint() RadElement.UnitializeSystemSkinPaint() RadElement.GetSystemSkinPaintBounds() RadElement.OnUseSystemSkinChanged(EventArgs) RadElement.ShouldPaintSystemSkin() RadElement.ComposeShouldPaintSystemSkin() RadElement.GetStylablePropertiesFilter() RadElement.ResetStyleSettings(bool) RadElement.ResetStyleSettings(bool, RadProperty) RadElement.ProcessBehaviors(RadPropertyChangedEventArgs) RadElement.AddBehavior(PropertyChangeBehavior) RadElement.GetBehaviors() RadElement.RemoveBehavior(PropertyChangeBehavior) RadElement.ClearBehaviors() RadElement.AddRangeBehavior(PropertyChangeBehaviorCollection) RadElement.SetThemeApplied(bool) RadElement.OnStyleChanged(RadPropertyChangedEventArgs) RadElement.UnapplyStyle() RadElement.RemoveRangeBehaviors(PropertyChangeBehaviorCollection) RadElement.RemoveBehaviors(PropertyChangeBehavior) RadElement.RemoveRangeRoutedEventBehaviors(RoutedEventBehaviorCollection) RadElement.GetThemeEffectiveType() RadElement.GetChildrenByType(Type) RadElement.GetChildrenByBaseType(Type) RadElement.FindAncestorByThemeEffectiveType(Type) RadElement.FindAncestor<T>() RadElement.IsAncestorOf(RadElement) RadElement.FindDescendant<T>() RadElement.FindDescendant(Predicate<RadElement>) RadElement.FindDescendant(Type) RadElement.EnumDescendants(TreeTraversalMode) RadElement.EnumDescendants(Predicate<RadElement>, TreeTraversalMode) RadElement.EnumDescendants(Filter, TreeTraversalMode) RadElement.GetDescendants(Predicate<RadElement>, TreeTraversalMode) RadElement.GetDescendants(Filter, TreeTraversalMode) RadElement.GetAncestors(Filter) RadElement.GetAncestors(Predicate<RadElement>) RadElement.RaiseRoutedEvent(RadElement, RoutedEventArgs) RadElement.RaiseTunnelEvent(RadElement, RoutedEventArgs) RadElement.OnTunnelEvent(RadElement, RoutedEventArgs) RadElement.OnBubbleEvent(RadElement, RoutedEventArgs) RadElement.IsEventInProcess(RaisedRoutedEvent) RadElement.RegisterRoutedEvent(string, Type) RadElement.GetRegisterRoutedEvent(string, Type) RadElement.GetRegisterRoutedEvent(string, string) RadElement.GetRegisterRoutedEvent(string) RadElement.OnChildrenChanged(RadElement, ItemsChangeOperation) RadElement.GetChildren(ChildrenListOptions) RadElement.SendToBack() RadElement.BringToFront() RadElement.IsChildOf(RadElement) RadElement.Focus() RadElement.Focus(bool) RadElement.SetFocusPropertySafe(bool) RadElement.KillFocus() RadElement.OnCLREventsRise(RoutedEventArgs) RadElement.OnMouseHover(EventArgs) RadElement.OnParentEnabledChanged(RadPropertyChangedEventArgs) RadElement.OnLostMouseCapture(MouseEventArgs) RadElement.OnClick(EventArgs) RadElement.OnDoubleClick(EventArgs) RadElement.OnMouseEnter(EventArgs) RadElement.PerformClick() RadElement.OnMouseWheel(MouseEventArgs) RadElement.DoMouseWheel(MouseEventArgs) RadElement.DoClick(EventArgs) RadElement.DoDoubleClick(EventArgs) RadElement.IsInputKey(InputKeyEventArgs) RadElement.MouseEventArgsFromControl(MouseEventArgs) RadElement.DoMouseDown(MouseEventArgs) RadElement.DoMouseUp(MouseEventArgs) RadElement.DoMouseMove(MouseEventArgs) RadElement.ShowScreenTip(ScreenTipNeededEventArgs) RadElement.HideScreenTip() RadElement.DoMouseHover(EventArgs) RadElement.OnShowScreenTip(ComponentInputBehavior) RadElement.RaiseClick(EventArgs) RadElement.RaiseDoubleClick(EventArgs) RadElement.RaiseMouseWheel(MouseEventArgs) RadElement.UpdateContainsFocus(bool) RadElement.DoMouseEnter(EventArgs) RadElement.DoMouseLeave(EventArgs) RadElement.GetValue(RadProperty) RadElement.AddStylePropertySetting(IPropertySetting) RadElement.SetValueCore(RadPropertyValue, object, object, ValueSource) RadElement.NotifyChildren(RadPropertyChangedEventArgs) RadElement.OnBoundsChanged(RadPropertyChangedEventArgs) RadElement.OnLocationChanged(RadPropertyChangedEventArgs) RadElement.OnDisplayPropertyChanged(RadPropertyChangedEventArgs) RadElement.CanRaisePropertyChangeNotifications(RadPropertyValue) RadElement.IsPropertyCancelable(RadPropertyMetadata) RadElement.OnParentPropertyChanged(RadPropertyChangedEventArgs) RadElement.PerformDispose(bool) RadElement.DisposeChildren() RadElement.GetStylableChildrenHierarchy() RadElement.GetStylableChildren() RadElement.GetClientRectangle(SizeF) RadElement.GetBorderThickness(BorderPrimitive) RadElement.DpiScaleChanged(SizeF) RadElement.ElementState RadElement.DesiredSize RadElement.IsLayoutSuspended RadElement.BoundingRectangle RadElement.ControlBoundingRectangle RadElement.BypassLayoutPolicies RadElement.IsArrangeValid RadElement.IsMeasureValid RadElement.TreeLevel RadElement.Transform RadElement.TotalTransform RadElement.ShouldPaintUsingParentShape RadElement.UseSystemSkin RadElement.PropagateStyleToChildren RadElement.ThemeEffectiveType RadElement.ElementTree RadElement.Children RadElement.ChildrenHierarchy RadElement.Parent RadElement.RoutedEventBehaviors RadElement.LayoutableChildrenCount RadElement.ContainsFocus RadElement.NotifyParentOnMouseInput RadElement.IsAbleToRespondToMouseEvents RadElement.AutoSize RadElement.Bounds RadElement.Location RadElement.Size RadElement.BorderThickness RadElement.Padding RadElement.Margin RadElement.Alignment RadElement.AutoSizeMode RadElement.FitToSizeMode RadElement.Enabled RadElement.CanFocus RadElement.IsFocused RadElement.IsMouseOver RadElement.IsMouseOverElement RadElement.IsMouseDown RadElement.InvalidateChildrenOnChildChanged RadElement.ShouldPaint RadElement.Visibility RadElement.IsElementVisible RadElement.Name RadElement.Class RadElement.ClipDrawing RadElement.Shape RadElement.MinSize RadElement.MaxSize RadElement.ZIndex RadElement.RightToLeft RadElement.UseCompatibleTextRendering RadElement.BackgroundShape RadElement.BackgroundShapePaintMode RadElement.ContainsMouse RadElement.Capture RadElement.ScaleTransform RadElement.AngleTransform RadElement.PositionOffset RadElement.SerializeProperties RadElement.SerializeElement RadElement.SerializeChildren RadElement.RenderingMaxFramerate RadElement.IsThemeApplied RadElement.ShouldApplyTheme RadElement.UseCenteredAngleTransform RadElement.Tag RadElement.StretchHorizontally RadElement.ClickMode RadElement.DoubleClickEnabled RadElement.CaptureOnMouseDown RadElement.IsItemHovered RadElement.Style RadElement.AutoToolTip RadElement.ScreenTip RadElement.AutoNumberKeyTip RadElement.DpiScaleFactor RadElement.LayoutUpdated RadElement.MouseHover RadElement.MouseMove RadElement.MouseDown RadElement.MouseUp RadElement.Click RadElement.DoubleClick RadElement.MouseEnter RadElement.MouseWheel RadElement.EnabledChanged RadElement.MouseLeave RadElement.ChildrenChanged RadElement.LostMouseCapture RadObject.BindingContextProperty RadObject.RadType RadObject.ClearPropertyStore() RadObject.SuspendPropertyNotifications() RadObject.ResumePropertyNotifications() RadObject.GetPropertyValue(RadProperty) RadObject.SetDefaultValueOverride(RadProperty, object) RadObject.SetValue(RadProperty, object) RadObject.ResetValue(RadProperty) RadObject.ResetLocalValue(RadProperty) RadObject.ResetValue(RadProperty, ValueResetFlags) RadObject.UpdateValue(RadProperty) RadObject.GetValueSource(RadProperty) RadObject.GetRegisteredRadProperty(string) RadObject.UpdateValueCore(RadPropertyValue) RadObject.ResetValueCore(RadPropertyValue, ValueResetFlags) RadObject.GetDefaultValue(RadPropertyValue, object) RadObject.CoerceValue(RadPropertyValue, object) RadObject.ShouldSerializeProperty(RadProperty) RadObject.BindProperty(RadProperty, RadObject, RadProperty, PropertyBindingOptions) RadObject.UnbindProperty(RadProperty) RadObject.GetInheritedValue(RadProperty) RadObject.OnNotifyPropertyChanged(string) RadObject.OnNotifyPropertyChanged(PropertyChangedEventArgs) RadObject.OnShouldSerializeProperty(ShouldSerializePropertyEventArgs) RadObject.PropertyValues RadObject.PropertyFilter RadObject.RadObjectType RadObject.BindingContext RadObject.PropertyChanged RadObject.RadPropertyChanged RadObject.RadPropertyChanging DisposableObject.GetBitState(long) DisposableObject.SetBitState(long, bool) DisposableObject.Dispose() DisposableObject.Dispose(bool) DisposableObject.DisposeUnmanagedResources() DisposableObject.BitState DisposableObject.Events DisposableObject.IsDisposing DisposableObject.IsDisposed DisposableObject.Disposed DisposableObject.Disposing Show more
Occurs when the nullable value has changed.
Declaration
public EventHandler NullableValueChanged
Field Value
EventHandler
Declaration
protected decimal internalValue
Field Value
decimal
Gets a reference to the down button element used for decrementing the value.
Declaration
[ Browsable ( false ) ]
public RadRepeatArrowElement ButtonDown { get ; }
Property Value
RadRepeatArrowElement
Gets a reference to the up button element used for incrementing the value.
Declaration
[ Browsable ( false ) ]
public RadRepeatArrowElement ButtonUp { get ; }
Property Value
RadRepeatArrowElement
Gets the layout element that contains the increment and decrement buttons.
Declaration
protected StackLayoutElement ButtonsLayout { get ; }
Property Value
StackLayoutElement
Gets or sets the number of decimal places to display in the spin element.
Declaration
public int DecimalPlaces { get ; set ; }
Property Value
int
Gets or sets the default value for the numeric up/down element.
Declaration
protected decimal DefaultValue { get ; set ; }
Property Value
decimal
Gets or sets a value indicating whether the user can change the value using the mouse wheel.
Declaration
[ Browsable ( false ) ]
public bool EnableMouseWheel { get ; set ; }
Property Value
bool
Gets or sets a value indicating whether empty text in the editor should be interpreted as a null value.
When true, an empty text box will result in a null NullableValue .
Declaration
[ Browsable ( false ) ]
public virtual bool EnableNullValueInput { get ; set ; }
Property Value
bool
Gets or sets a value indicating whether the RadSpinEdit should display the value it contains in hexadecimal format.
Declaration
public bool Hexadecimal { get ; set ; }
Property Value
bool
Gets or sets a value indicating whether the user can use the UP ARROW and DOWN ARROW keys to change values.
Declaration
public bool InterceptArrowKeys { get ; set ; }
Property Value
bool
Gets the main layout element that arranges the text box and buttons.
Declaration
protected StackLayoutElement Layout { get ; }
Property Value
StackLayoutElement
Gets or sets the maximum value that can be entered in the spin element.
Declaration
public decimal MaxValue { get ; set ; }
Property Value
decimal
Gets or sets the minimum value that can be entered in the spin element.
Declaration
public decimal MinValue { get ; set ; }
Property Value
decimal
Gets or sets the nullable decimal value in the numeric up/down element. This value can be null when EnableNullValueInput is true.
Declaration
[ Browsable ( false ) ]
public virtual decimal ? NullableValue { get ; set ; }
Property Value
decimal ?
Gets or sets a value indicating whether the text can be changed by the use of the up or down buttons only.
When true, direct text input is disabled.
Declaration
public bool ReadOnly { get ; set ; }
Property Value
bool
Gets or sets a value indicating whether right-clicking the up/down buttons resets the value to maximum/minimum respectively.
Declaration
public bool RightMouseButtonReset { get ; set ; }
Property Value
bool
Gets or sets a value indicating whether the border around the spin element is visible.
Declaration
[ Browsable ( true ) ]
public bool ShowBorder { get ; set ; }
Property Value
bool
Gets or sets a value indicating whether the up/down buttons are visible and functional.
When false, the spin element acts as a numeric text box without increment/decrement buttons.
Declaration
public bool ShowUpDownButtons { get ; set ; }
Property Value
bool
Gets or sets the value that is added to or subtracted from the current value when incrementing or decrementing.
Declaration
public decimal Step { get ; set ; }
Property Value
decimal
Gets or sets a value indicating whether the element should be stretched vertically to fill available space.
Gets or sets the text content of the spin element.
Declaration
public override string Text { get ; set ; }
Property Value
string
Overrides
RadItem.Text
Gets or sets the minimum value that could be set in the spin editor
Declaration
public virtual HorizontalAlignment TextAlignment { get ; set ; }
Property Value
HorizontalAlignment
Gets the underlying text box control used for input.
Declaration
public TextBox TextBoxControl { get ; }
Property Value
TextBox
Gets RadTextBoxItem contained in the spin editor.
Declaration
public virtual RadTextBoxItem TextBoxItem { get ; }
Property Value
RadTextBoxItem
Gets or sets a value indicating whether a thousands separator is displayed in the RadSpinEdit
Declaration
public bool ThousandsSeparator { get ; set ; }
Property Value
bool
Gets or sets the current decimal value of the spin element.
Declaration
public decimal Value { get ; set ; }
Property Value
decimal
Gets or sets a value indicating whether the value wraps around when reaching minimum or maximum limits.
When true, exceeding the maximum value wraps to minimum and vice versa.
Declaration
public bool Wrap { get ; set ; }
Property Value
bool
Constrains the specified value to be within the minimum and maximum range, applying wrap-around logic if enabled.
Declaration
protected virtual decimal Constrain ( decimal value )
Parameters
decimal
The value to constrain.
Returns
decimal
The constrained value within the valid range.
Creates the child elements that compose the RadSpinElement including text box, buttons, and layout containers.
Creates the button element for decrementing the value.
Creates the button element for incrementing the value.
Disposes of managed resources and unbinds properties.
Ends the current text editing session and validates the input.
Declaration
protected virtual void EndTextEdit ( )
Gets the formatted number text representation of the specified value.
Declaration
protected virtual string GetNumberText ( decimal num)
Parameters
decimal
The numeric value to format.
Returns
string
The formatted string representation of the number.
Parses the current text content and returns the corresponding decimal value.
Declaration
protected virtual decimal GetValueFromText ( )
Returns
decimal
The decimal value parsed from the text, or the current internal value if parsing fails.
Initializes the up and down arrow buttons and their container layout.
Declaration
protected virtual void InitializeButtons ( )
Initializes the default field values for the spin element.
Measures the desired size of the element within the specified available size.
Declaration
protected override SizeF MeasureOverride ( SizeF availableSize)
Parameters
SizeF
The available size that this element can be given.
Returns
SizeF
The desired size of this element.
Overrides
RadElement.MeasureOverride(SizeF)
Handles changes to bit state flags and updates the UI accordingly.
Handles key down events and processes arrow keys for value increment/decrement if enabled.
Handles key press events and performs validation for the current key press.
Declaration
protected virtual void OnNullableValueChanged ( )
Handles property change notifications and updates related elements.
Handles key press events for the text box, filtering valid numeric input based on current format settings.
Raises the TextChanged event.
Declaration
protected virtual void OnValueChanged ( EventArgs e)
Parameters
EventArgs
An EventArgs that contains the event data.
Increments or decrements the current value by the specified step amount.
Declaration
public virtual void PerformStep ( decimal step)
Parameters
decimal
The amount to add to or subtract from the current value.
Processes mouse wheel events and forwards them to the parent control.
Declaration
protected virtual void ProcessMouseWheel ( MouseEventArgs e)
Parameters
MouseEventArgs
A MouseEventArgs that contains the event data.
Sets the internal value of the spin element and updates the display.
Declaration
protected virtual void SetSpinValue ( decimal value , bool fromValue)
Parameters
decimal
The value to set.
bool
Indicates whether the change originates from the Value property.
Detaches event handlers from the increment and decrement buttons.
Declaration
protected void UnwireButtonEvents ( )
Detaches event handlers from the text box and other child elements.
Declaration
protected virtual void UnwireEvents ( )
Validates the current value and updates the display if necessary.
Declaration
public virtual bool Validate ( )
Returns
bool
True if validation succeeded, false otherwise.
Performs core validation logic for the current internal value.
Declaration
protected virtual void ValidateCore ( )
Validates the input on key press and handles Enter key for value validation.
Attaches event handlers to the increment and decrement buttons.
Declaration
protected void WireButtonEvents ( )
Attaches event handlers to the text box and other child elements.
Declaration
protected virtual void WireEvents ( )
Handles the focus gained event for the text item and updates the focus border.
Declaration
protected virtual void textItem_GotFocus ( object sender, EventArgs e)
Parameters
object
The source of the event.
EventArgs
An EventArgs that contains the event data.
Handles the focus lost event for the text item and updates the focus border.
Declaration
protected virtual void textItem_LostFocus ( object sender, EventArgs e)
Parameters
object
The source of the event.
EventArgs
An EventArgs that contains the event data.
Occurs when the user presses a key while the spin element has focus.
Declaration
public event KeyEventHandler KeyDown
Event Value
KeyEventHandler
Occurs before the value of the spin element has changed.
Declaration
[ Browsable ( true ) ]
public event EventHandler ValueChanged
Event Value
EventHandler
Occurs when the value is being changed. This is a cancelable event.