Class RadSpinEditor
Represents a numeric up/down control box. The RadSpinEditor class is a simple wrapper for the RadSpinElement class. The RadSpinEditor acts to transfer events to and from its corresponding RadSpinElement. The RadSpinElement which is essentially the RadSpinEditor control may be nested in other telerik controls.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
[TelerikToolboxCategory("Editors")]
public class RadSpinEditor : RadEditorControl, INotifyPropertyChanged, ISupportInitializeNotification, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider, ISupportInitialize
Constructors
RadSpinEditor()
Initializes a new instance of the RadSpinEditor class
Declaration
public RadSpinEditor()
Properties
AutoSize
Gets or sets whether the edit control is auto-sized
Declaration
public override bool AutoSize { get; set; }
Property Value
System.Boolean
|
Overrides
CausesValidation
Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus.
Declaration
public bool CausesValidation { get; set; }
Property Value
System.Boolean
true if the control causes validation to be performed on any controls requiring validation when it receives focus; otherwise, false. |
DecimalPlaces
Gets or sets the number of decimal places to display in the RadSpinEditor
Declaration
public int DecimalPlaces { get; set; }
Property Value
System.Int32
|
DefaultSize
set the default control size
Declaration
protected override Size DefaultSize { get; }
Property Value
System.Drawing.Size
|
EnableNullValueInput
Gets or set how to interpret the empty text in the editor portion of the control if true the empty value will set NULL in NullableValue property
Declaration
public virtual bool EnableNullValueInput { get; set; }
Property Value
System.Boolean
|
Hexadecimal
Gets or sets a value indicating whether the RadSpinEditor should display the value it contains in hexadecimal format.
Declaration
public bool Hexadecimal { get; set; }
Property Value
System.Boolean
|
Increment
Set or get the Step value
Declaration
public decimal Increment { get; set; }
Property Value
System.Decimal
|
InterceptArrowKeys
Gets or sets a value indicating whether the user can use the UP ARROW and DOWN ARROW keys to select values.
Declaration
public bool InterceptArrowKeys { get; set; }
Property Value
System.Boolean
|
Maximum
Gets or sets the maximum value for the spin edit
Declaration
public decimal Maximum { get; set; }
Property Value
System.Decimal
|
Minimum
Gets or sets the mimimum value for the spin edit
Declaration
public decimal Minimum { get; set; }
Property Value
System.Decimal
|
Name
Declaration
public string Name { get; set; }
Property Value
System.String
|
NullableValue
Represents the decimal value in the numeric up/down. The Value can be null
Declaration
public decimal? NullableValue { get; set; }
Property Value
System.Nullable<System.Decimal>
|
ReadOnly
Gets or sets a value indicating whether the text can be changed by the use of the up or down buttons only.
Declaration
public bool ReadOnly { get; set; }
Property Value
System.Boolean
|
RightMouseButtonReset
Gets or sets whether by right-mouse clicking the up/down button you reset the value to the Maximum/Minimum value respectively.
Declaration
public bool RightMouseButtonReset { get; set; }
Property Value
System.Boolean
|
ShowBorder
Gets or sets a value indicating whether the border is shown.
Declaration
public bool ShowBorder { get; set; }
Property Value
System.Boolean
|
ShowUpDownButtons
Gets or sets the whether RadSpinEditor will be used as a numeric textbox.
Declaration
public bool ShowUpDownButtons { get; set; }
Property Value
System.Boolean
|
SpinElement
Gets the instance of RadSpinElement wrapped by this control. RadSpinElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadSpinControl.
Declaration
public RadSpinElement SpinElement { get; }
Property Value
RadSpinElement
|
Step
Set or get the Step value
Declaration
public decimal Step { get; set; }
Property Value
System.Decimal
|
TabStop
Gets or sets a value indicating whether the user can give the focus to this control using the TAB key.
Declaration
public bool TabStop { get; set; }
Property Value
System.Boolean
True if the user can give the focus to the control using the TAB key, otherwise false. The default is true. |
Text
Declaration
public override string Text { get; set; }
Property Value
System.String
|
Overrides
TextAlignment
Gets or sets the minimum value that could be set in the spin editor
Declaration
public virtual HorizontalAlignment TextAlignment { get; set; }
Property Value
System.Windows.Forms.HorizontalAlignment
|
ThousandsSeparator
Gets or sets a value indicating whether a thousands separator is displayed in the RadSpinEditor
Declaration
public bool ThousandsSeparator { get; set; }
Property Value
System.Boolean
|
Value
Represents the decimal value in the numeric up/down
Declaration
public decimal Value { get; set; }
Property Value
System.Decimal
|
Wrap
Gets or sets a value indicating that value will revert to minimum value after reaching maximum and to maximum after reaching minimum.
Declaration
public bool Wrap { get; set; }
Property Value
System.Boolean
|
Methods
ControlDefinesThemeForElement(RadElement)
Declaration
public override bool ControlDefinesThemeForElement(RadElement element)
Parameters
RadElement
element
|
Returns
System.Boolean
|
Overrides
CreateAccessibilityInstance()
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
System.Windows.Forms.AccessibleObject
|
CreateChildItems(RadElement)
CreateChildItems
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
RadElement
parent
|
Overrides
CreateSpinElement()
OnEnter(EventArgs)
Declaration
protected override void OnEnter(EventArgs e)
Parameters
System.EventArgs
e
|
OnLeave(EventArgs)
Declaration
protected override void OnLeave(EventArgs e)
Parameters
System.EventArgs
e
|
OnLostFocus(EventArgs)
Declaration
protected override void OnLostFocus(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnRightToLeftChanged(EventArgs)
Declaration
protected override void OnRightToLeftChanged(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnValidated(EventArgs)
Declaration
protected override void OnValidated(EventArgs e)
Parameters
System.EventArgs
e
|
OnValueChanged(EventArgs)
Declaration
protected virtual void OnValueChanged(EventArgs args)
Parameters
System.EventArgs
args
|
OnValueChanging(ValueChangingEventArgs)
Declaration
protected virtual void OnValueChanging(ValueChangingEventArgs args)
Parameters
ValueChangingEventArgs
args
|
PerformStep(Decimal)
increase or decrease value in the numeric up/dowm with step value
Declaration
public void PerformStep(decimal step)
Parameters
System.Decimal
step
|
ProcessAutoSizeChanged(Boolean)
Declaration
protected override void ProcessAutoSizeChanged(bool value)
Parameters
System.Boolean
value
|
Overrides
ResetBackColorThemeOverrides()
Declaration
protected override void ResetBackColorThemeOverrides()
Overrides
ResetForeColorThemeOverrides()
Declaration
protected override void ResetForeColorThemeOverrides()
Overrides
Select(Boolean, Boolean)
Declaration
protected override void Select(bool directed, bool forward)
Parameters
System.Boolean
directed
|
System.Boolean
forward
|
SetBackColorThemeOverrides()
Declaration
protected override void SetBackColorThemeOverrides()
Overrides
SetForeColorThemeOverrides()
Declaration
protected override void SetForeColorThemeOverrides()
Overrides
Events
NullableValueChanged
Occurs when the NullableValue of the SpinEdit is changed.
Declaration
public event EventHandler NullableValueChanged
Event Type
System.EventHandler
|
ValueChanged
Occurs before the value of the SpinEdit is changed.
Declaration
public event EventHandler ValueChanged
Event Type
System.EventHandler
|
ValueChanging
Occurs before the value of the SpinEdit is changing.
Declaration
public event ValueChangingEventHandler ValueChanging
Event Type
ValueChangingEventHandler
|