Class
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.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class RadSpinElement : RadEditorElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode

Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemRadEditorElementRadSpinElement

Derived Classes: BaseSpinEditorElementRadSpinEditorElement

Implements: IBindableComponentIComponentICustomTypeDescriptorIDisposableINotifyPropertyChangedIShortcutProviderIStylableElementIStylableNodeISupportDragISupportDropISupportSystemSkin

Inherited Members RadItem.KeyDownEventRadItem.KeyPressEventRadItem.KeyUpEventRadItem.FocusCommandRadItem.ActionCommandRadItem.UseDefaultDisabledPaintPropertyRadItem.TextPropertyRadItem.TextOrientationPropertyRadItem.FlipTextPropertyRadItem.IsAddNewItemPropertyRadItem.ToolTipTextPropertyRadItem.EnableElementShadowPropertyRadItem.ShadowDepthPropertyRadItem.ShadowColorPropertyRadItem.IsPaintingRippleRadItem.EnableRippleAnimationPropertyRadItem.RippleAnimationColorPropertyRadItem.EnableFocusBorderPropertyRadItem.FocusBorderColorPropertyRadItem.FocusBorderWidthPropertyRadItem.EnableFocusBorderAnimationPropertyRadItem.EnableHighlightPropertyRadItem.HighlightColorPropertyRadItem.EnableBorderHighlightPropertyRadItem.BorderHighlightColorPropertyRadItem.BorderHighlightThicknessPropertyRadItem.VisualStatePropertyRadItem.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.UseDefaultDisabledPaintRadItem.TextOrientationRadItem.FlipTextRadItem.CanHaveOwnStyleRadItem.SelectableRadItem.DefaultAutoToolTipRadItem.ShouldHandleMouseInputRadItem.KeyTipRadItem.ParentItemRadItem.ShortcutsHandlerRadItem.EnableElementShadowRadItem.ShadowDepthRadItem.ShadowColorRadItem.EnableRippleAnimationRadItem.RippleAnimationColorRadItem.EnableFocusBorderRadItem.FocusBorderColorRadItem.FocusBorderWidthRadItem.EnableFocusBorderAnimationRadItem.EnableHighlightRadItem.HighlightColorRadItem.EnableBorderHighlightRadItem.BorderHighlightColorRadItem.BorderHighlightThicknessRadItem.MnemonicTextRadItem.ToolTipTextRadItem.ThemeRoleRadItem.VisualStateRadItem.StateManagerRadItem.AllowDragRadItem.AllowDropRadItem.ShortcutsRadItem.AccessibleDescriptionRadItem.AccessibleNameRadItem.AccessibleRoleRadItem.TextChangingRadItem.TextChangedRadItem.TextOrientationChangedRadItem.FlipTextChangedRadItem.QueryAccessibilityHelpRadItem.KeyPressRadItem.KeyUpRadItem.ZoomGestureRadItem.RotateGestureRadItem.PanGestureRadItem.TwoFingerTapGestureRadItem.PressAndTapGestureRadComponentElement.ToString()RadComponentElement.GetService(Type)RadComponentElement.CanRaiseEventsRadComponentElement.ContainerRadComponentElement.DesignModeRadComponentElement.SiteRadComponentElement.DataBindingsVisualElement.DefaultSizePropertyVisualElement.ForeColorPropertyVisualElement.BackColorPropertyVisualElement.FontPropertyVisualElement.SmoothingModePropertyVisualElement.OpacityPropertyVisualElement.CustomFontPropertyVisualElement.CustomFontSizePropertyVisualElement.CustomFontStylePropertyVisualElement.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.DefaultSizeVisualElement.ForeColorVisualElement.BackColorVisualElement.FontVisualElement.CustomFontVisualElement.CustomFontSizeVisualElement.CustomFontStyleVisualElement.SmoothingModeVisualElement.OpacityVisualElement.FontChangedRadElement.BoundsPropertyRadElement.BorderThicknessPropertyRadElement.PaddingPropertyRadElement.MarginPropertyRadElement.AlignmentPropertyRadElement.AutoSizeModePropertyRadElement.FitToSizeModePropertyRadElement.MinSizePropertyRadElement.EnabledPropertyRadElement.CanFocusPropertyRadElement.IsItemFocusedPropertyRadElement.IsFocusedPropertyRadElement.IsMouseOverPropertyRadElement.IsMouseOverElementPropertyRadElement.IsMouseDownPropertyRadElement.ShouldPaintPropertyRadElement.VisibilityPropertyRadElement.NamePropertyRadElement.ClassPropertyRadElement.ClipDrawingPropertyRadElement.ShapePropertyRadElement.MouseClickedEventRadElement.MouseDoubleClickedEventRadElement.MouseDownEventRadElement.MouseUpEventRadElement.MouseWheelEventRadElement.ChildElementAddedEventRadElement.ParentChangedEventRadElement.BoundsChangedEventRadElement.VisibilityChangingEventRadElement.EnabledChangedEventRadElement.ControlChangedEventRadElement.BackgroundShapePropertyRadElement.BackgroundShapePaintModePropertyRadElement.ContainsFocusPropertyRadElement.ContainsMousePropertyRadElement.MaxSizePropertyRadElement.RightToLeftPropertyRadElement.AutoSizePropertyRadElement.ZIndexPropertyRadElement.AngleTransformPropertyRadElement.ScaleTransformPropertyRadElement.PositionOffsetPropertyRadElement.TagPropertyRadElement.StretchHorizontallyPropertyRadElement.StretchVerticallyPropertyRadElement.UseCompatibleTextRenderingPropertyRadElement.ClickModePropertyRadElement.styleVersionRadElement.paintSystemSkinRadElement.SetPropertyValueCommandRadElement.GetPropertyValueCommandRadElement.StylePropertyRadElement.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.ElementStateRadElement.DesiredSizeRadElement.IsLayoutSuspendedRadElement.BoundingRectangleRadElement.ControlBoundingRectangleRadElement.BypassLayoutPoliciesRadElement.IsArrangeValidRadElement.IsMeasureValidRadElement.TreeLevelRadElement.TransformRadElement.TotalTransformRadElement.ShouldPaintUsingParentShapeRadElement.UseSystemSkinRadElement.PropagateStyleToChildrenRadElement.ThemeEffectiveTypeRadElement.ElementTreeRadElement.ChildrenRadElement.ChildrenHierarchyRadElement.ParentRadElement.RoutedEventBehaviorsRadElement.LayoutableChildrenCountRadElement.ContainsFocusRadElement.NotifyParentOnMouseInputRadElement.IsAbleToRespondToMouseEventsRadElement.AutoSizeRadElement.BoundsRadElement.LocationRadElement.SizeRadElement.BorderThicknessRadElement.PaddingRadElement.MarginRadElement.AlignmentRadElement.AutoSizeModeRadElement.FitToSizeModeRadElement.EnabledRadElement.CanFocusRadElement.IsFocusedRadElement.IsMouseOverRadElement.IsMouseOverElementRadElement.IsMouseDownRadElement.InvalidateChildrenOnChildChangedRadElement.ShouldPaintRadElement.VisibilityRadElement.IsElementVisibleRadElement.NameRadElement.ClassRadElement.ClipDrawingRadElement.ShapeRadElement.MinSizeRadElement.MaxSizeRadElement.ZIndexRadElement.RightToLeftRadElement.UseCompatibleTextRenderingRadElement.BackgroundShapeRadElement.BackgroundShapePaintModeRadElement.ContainsMouseRadElement.CaptureRadElement.ScaleTransformRadElement.AngleTransformRadElement.PositionOffsetRadElement.SerializePropertiesRadElement.SerializeElementRadElement.SerializeChildrenRadElement.RenderingMaxFramerateRadElement.IsThemeAppliedRadElement.ShouldApplyThemeRadElement.UseCenteredAngleTransformRadElement.TagRadElement.StretchHorizontallyRadElement.ClickModeRadElement.DoubleClickEnabledRadElement.CaptureOnMouseDownRadElement.IsItemHoveredRadElement.StyleRadElement.AutoToolTipRadElement.ScreenTipRadElement.AutoNumberKeyTipRadElement.DpiScaleFactorRadElement.LayoutUpdatedRadElement.MouseHoverRadElement.MouseMoveRadElement.MouseDownRadElement.MouseUpRadElement.ClickRadElement.DoubleClickRadElement.MouseEnterRadElement.MouseWheelRadElement.EnabledChangedRadElement.MouseLeaveRadElement.ChildrenChangedRadElement.LostMouseCaptureRadObject.BindingContextPropertyRadObject.RadTypeRadObject.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.PropertyValuesRadObject.PropertyFilterRadObject.RadObjectTypeRadObject.BindingContextRadObject.PropertyChangedRadObject.RadPropertyChangedRadObject.RadPropertyChangingDisposableObject.GetBitState(long)DisposableObject.SetBitState(long, bool)DisposableObject.Dispose()DisposableObject.Dispose(bool)DisposableObject.DisposeUnmanagedResources()DisposableObject.BitStateDisposableObject.EventsDisposableObject.IsDisposingDisposableObject.IsDisposedDisposableObject.DisposedDisposableObject.Disposing

Constructors

RadSpinElement()

Declaration

cs-api-definition
public RadSpinElement()

Fields

NullableValueChanged

Occurs when the nullable value has changed.

Declaration

cs-api-definition
public EventHandler NullableValueChanged

Field Value

EventHandler

internalValue

Declaration

cs-api-definition
protected decimal internalValue

Field Value

decimal

Properties

ButtonDown

Gets a reference to the down button element used for decrementing the value.

Declaration

cs-api-definition
[Browsable(false)]
public RadRepeatArrowElement ButtonDown { get; }

Property Value

RadRepeatArrowElement

ButtonUp

Gets a reference to the up button element used for incrementing the value.

Declaration

cs-api-definition
[Browsable(false)]
public RadRepeatArrowElement ButtonUp { get; }

Property Value

RadRepeatArrowElement

ButtonsLayout

Gets the layout element that contains the increment and decrement buttons.

Declaration

cs-api-definition
protected StackLayoutElement ButtonsLayout { get; }

Property Value

StackLayoutElement

DecimalPlaces

Gets or sets the number of decimal places to display in the spin element.

Declaration

cs-api-definition
public int DecimalPlaces { get; set; }

Property Value

int

DefaultValue

Gets or sets the default value for the numeric up/down element.

Declaration

cs-api-definition
protected decimal DefaultValue { get; set; }

Property Value

decimal

EnableMouseWheel

Gets or sets a value indicating whether the user can change the value using the mouse wheel.

Declaration

cs-api-definition
[Browsable(false)]
public bool EnableMouseWheel { get; set; }

Property Value

bool

EnableNullValueInput

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

cs-api-definition
[Browsable(false)]
public virtual bool EnableNullValueInput { get; set; }

Property Value

bool

Hexadecimal

Gets or sets a value indicating whether the RadSpinEdit should display the value it contains in hexadecimal format.

Declaration

cs-api-definition
public bool Hexadecimal { get; set; }

Property Value

bool

InterceptArrowKeys

Gets or sets a value indicating whether the user can use the UP ARROW and DOWN ARROW keys to change values.

Declaration

cs-api-definition
public bool InterceptArrowKeys { get; set; }

Property Value

bool

Layout

Gets the main layout element that arranges the text box and buttons.

Declaration

cs-api-definition
protected StackLayoutElement Layout { get; }

Property Value

StackLayoutElement

MaxValue

Gets or sets the maximum value that can be entered in the spin element.

Declaration

cs-api-definition
public decimal MaxValue { get; set; }

Property Value

decimal

MinValue

Gets or sets the minimum value that can be entered in the spin element.

Declaration

cs-api-definition
public decimal MinValue { get; set; }

Property Value

decimal

NullableValue

Gets or sets the nullable decimal value in the numeric up/down element. This value can be null when EnableNullValueInput is true.

Declaration

cs-api-definition
[Browsable(false)]
public virtual decimal? NullableValue { get; set; }

Property Value

decimal?

ReadOnly

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

cs-api-definition
public bool ReadOnly { get; set; }

Property Value

bool

RightMouseButtonReset

Gets or sets a value indicating whether right-clicking the up/down buttons resets the value to maximum/minimum respectively.

Declaration

cs-api-definition
public bool RightMouseButtonReset { get; set; }

Property Value

bool

ShowBorder

Gets or sets a value indicating whether the border around the spin element is visible.

Declaration

cs-api-definition
[Browsable(true)]
public bool ShowBorder { get; set; }

Property Value

bool

ShowUpDownButtons

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

cs-api-definition
public bool ShowUpDownButtons { get; set; }

Property Value

bool

Step

Gets or sets the value that is added to or subtracted from the current value when incrementing or decrementing.

Declaration

cs-api-definition
public decimal Step { get; set; }

Property Value

decimal

StretchVertically

Gets or sets a value indicating whether the element should be stretched vertically to fill available space.

Declaration

cs-api-definition
public override bool StretchVertically { get; set; }

Property Value

bool

Overrides RadElement.StretchVertically

Text

Gets or sets the text content of the spin element.

Declaration

cs-api-definition
public override string Text { get; set; }

Property Value

string

Overrides RadItem.Text

TextAlignment

Gets or sets the minimum value that could be set in the spin editor

Declaration

cs-api-definition
public virtual HorizontalAlignment TextAlignment { get; set; }

Property Value

HorizontalAlignment

TextBoxControl

Gets the underlying text box control used for input.

Declaration

cs-api-definition
public TextBox TextBoxControl { get; }

Property Value

TextBox

TextBoxItem

Gets RadTextBoxItem contained in the spin editor.

Declaration

cs-api-definition
public virtual RadTextBoxItem TextBoxItem { get; }

Property Value

RadTextBoxItem

ThousandsSeparator

Gets or sets a value indicating whether a thousands separator is displayed in the RadSpinEdit

Declaration

cs-api-definition
public bool ThousandsSeparator { get; set; }

Property Value

bool

Value

Gets or sets the current decimal value of the spin element.

Declaration

cs-api-definition
public decimal Value { get; set; }

Property Value

decimal

Wrap

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

cs-api-definition
public bool Wrap { get; set; }

Property Value

bool

Methods

Constrain(decimal)

Constrains the specified value to be within the minimum and maximum range, applying wrap-around logic if enabled.

Declaration

cs-api-definition
protected virtual decimal Constrain(decimal value)

Parameters

value

decimal

The value to constrain.

Returns

decimal

The constrained value within the valid range.

CreateChildElements()

Creates the child elements that compose the RadSpinElement including text box, buttons, and layout containers.

Declaration

cs-api-definition
protected override void CreateChildElements()

Overrides RadElement.CreateChildElements()

CreateDownButton()

Creates the button element for decrementing the value.

Declaration

cs-api-definition
protected virtual RadRepeatArrowElement CreateDownButton()

Returns

RadRepeatArrowElement

A RadRepeatArrowElement configured as a down button.

CreateUpButton()

Creates the button element for incrementing the value.

Declaration

cs-api-definition
protected virtual RadRepeatArrowElement CreateUpButton()

Returns

RadRepeatArrowElement

A RadRepeatArrowElement configured as an up button.

DisposeManagedResources()

Disposes of managed resources and unbinds properties.

Declaration

cs-api-definition
protected override void DisposeManagedResources()

Overrides RadItem.DisposeManagedResources()

EndTextEdit()

Ends the current text editing session and validates the input.

Declaration

cs-api-definition
protected virtual void EndTextEdit()

GetNumberText(decimal)

Gets the formatted number text representation of the specified value.

Declaration

cs-api-definition
protected virtual string GetNumberText(decimal num)

Parameters

num

decimal

The numeric value to format.

Returns

string

The formatted string representation of the number.

GetValueFromText()

Parses the current text content and returns the corresponding decimal value.

Declaration

cs-api-definition
protected virtual decimal GetValueFromText()

Returns

decimal

The decimal value parsed from the text, or the current internal value if parsing fails.

InitializeButtons()

Initializes the up and down arrow buttons and their container layout.

Declaration

cs-api-definition
protected virtual void InitializeButtons()

InitializeFields()

Initializes the default field values for the spin element.

Declaration

cs-api-definition
protected override void InitializeFields()

Overrides RadItem.InitializeFields()

MeasureOverride(SizeF)

Measures the desired size of the element within the specified available size.

Declaration

cs-api-definition
protected override SizeF MeasureOverride(SizeF availableSize)

Parameters

availableSize

SizeF

The available size that this element can be given.

Returns

SizeF

The desired size of this element.

Overrides RadElement.MeasureOverride(SizeF)

OnBitStateChanged(long, bool, bool)

Handles changes to bit state flags and updates the UI accordingly.

Declaration

cs-api-definition
protected override void OnBitStateChanged(long key, bool oldValue, bool newValue)

Parameters

key

long

The bit state key that changed.

oldValue

bool

The previous value.

newValue

bool

The new value.

Overrides DisposableObject.OnBitStateChanged(long, bool, bool)

OnKeyDown(KeyEventArgs)

Handles key down events and processes arrow keys for value increment/decrement if enabled.

Declaration

cs-api-definition
protected override void OnKeyDown(KeyEventArgs e)

Parameters

e

KeyEventArgs

A KeyEventArgs that contains the event data.

Overrides RadItem.OnKeyDown(KeyEventArgs)

OnKeyPress(KeyPressEventArgs)

Handles key press events and performs validation for the current key press.

Declaration

cs-api-definition
protected override void OnKeyPress(KeyPressEventArgs e)

Parameters

e

KeyPressEventArgs

A KeyPressEventArgs that contains the event data.

Overrides RadItem.OnKeyPress(KeyPressEventArgs)

OnNullableValueChanged()

Raises the NullableValueChanged event.

Declaration

cs-api-definition
protected virtual void OnNullableValueChanged()

OnPropertyChanged(RadPropertyChangedEventArgs)

Handles property change notifications and updates related elements.

Declaration

cs-api-definition
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)

Parameters

e

RadPropertyChangedEventArgs

A RadPropertyChangedEventArgs that contains the event data.

Overrides RadItem.OnPropertyChanged(RadPropertyChangedEventArgs)

OnTextBoxKeyPress(KeyPressEventArgs)

Handles key press events for the text box, filtering valid numeric input based on current format settings.

Declaration

cs-api-definition
protected void OnTextBoxKeyPress(KeyPressEventArgs e)

Parameters

e

KeyPressEventArgs

A KeyPressEventArgs that contains the event data.

OnTextChanged(EventArgs)

Raises the TextChanged event.

Declaration

cs-api-definition
protected override void OnTextChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

Overrides RadItem.OnTextChanged(EventArgs)

OnValueChanged(EventArgs)

Raises the ValueChanged event.

Declaration

cs-api-definition
protected virtual void OnValueChanged(EventArgs e)

Parameters

e

EventArgs

An EventArgs that contains the event data.

OnValueChanging(ValueChangingEventArgs)

Raises the ValueChanging event.

Declaration

cs-api-definition
protected virtual void OnValueChanging(ValueChangingEventArgs e)

Parameters

e

ValueChangingEventArgs

A ValueChangingEventArgs that contains the event data.

PerformStep(decimal)

Increments or decrements the current value by the specified step amount.

Declaration

cs-api-definition
public virtual void PerformStep(decimal step)

Parameters

step

decimal

The amount to add to or subtract from the current value.

ProcessMouseWheel(MouseEventArgs)

Processes mouse wheel events and forwards them to the parent control.

Declaration

cs-api-definition
protected virtual void ProcessMouseWheel(MouseEventArgs e)

Parameters

e

MouseEventArgs

A MouseEventArgs that contains the event data.

SetSpinValue(decimal, bool)

Sets the internal value of the spin element and updates the display.

Declaration

cs-api-definition
protected virtual void SetSpinValue(decimal value, bool fromValue)

Parameters

value

decimal

The value to set.

fromValue

bool

Indicates whether the change originates from the Value property.

UnwireButtonEvents()

Detaches event handlers from the increment and decrement buttons.

Declaration

cs-api-definition
protected void UnwireButtonEvents()

UnwireEvents()

Detaches event handlers from the text box and other child elements.

Declaration

cs-api-definition
protected virtual void UnwireEvents()

Validate()

Validates the current value and updates the display if necessary.

Declaration

cs-api-definition
public virtual bool Validate()

Returns

bool

True if validation succeeded, false otherwise.

ValidateCore()

Performs core validation logic for the current internal value.

Declaration

cs-api-definition
protected virtual void ValidateCore()

ValidateOnKeyPress(KeyPressEventArgs)

Validates the input on key press and handles Enter key for value validation.

Declaration

cs-api-definition
protected virtual void ValidateOnKeyPress(KeyPressEventArgs e)

Parameters

e

KeyPressEventArgs

A KeyPressEventArgs that contains the event data.

WireButtonEvents()

Attaches event handlers to the increment and decrement buttons.

Declaration

cs-api-definition
protected void WireButtonEvents()

WireEvents()

Attaches event handlers to the text box and other child elements.

Declaration

cs-api-definition
protected virtual void WireEvents()

textItem_GotFocus(object, EventArgs)

Handles the focus gained event for the text item and updates the focus border.

Declaration

cs-api-definition
protected virtual void textItem_GotFocus(object sender, EventArgs e)

Parameters

sender

object

The source of the event.

e

EventArgs

An EventArgs that contains the event data.

textItem_LostFocus(object, EventArgs)

Handles the focus lost event for the text item and updates the focus border.

Declaration

cs-api-definition
protected virtual void textItem_LostFocus(object sender, EventArgs e)

Parameters

sender

object

The source of the event.

e

EventArgs

An EventArgs that contains the event data.

Events

KeyDown

Occurs when the user presses a key while the spin element has focus.

Declaration

cs-api-definition
public event KeyEventHandler KeyDown

Event Value

KeyEventHandler

ValueChanged

Occurs before the value of the spin element has changed.

Declaration

cs-api-definition
[Browsable(true)]
public event EventHandler ValueChanged

Event Value

EventHandler

ValueChanging

Occurs when the value is being changed. This is a cancelable event.

Declaration

cs-api-definition
public event ValueChangingEventHandler ValueChanging

Event Value

ValueChangingEventHandler