New to Telerik UI for WinFormsStart a free 30-day trial

Represents a numeric up/down editor.

Definition

Constructors

C#
public BaseSpinEditor()

Fields

C#
protected int selectionLength
C#
protected int selectionStart

Properties

Gets the type of the editor value

C#
public override Type DataType { get; }

Overrides: BaseInputEditor.DataType

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

C#
public int DecimalPlaces { get; set; }

Gets or sets the maximum value that could be set in the editor.

C#
public decimal MaxValue { get; set; }

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

C#
public decimal MinValue { get; set; }

Gets or sets the value which is added to/subtracted from the current value of the editor.

C#
public decimal Step { get; set; }

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

C#
public bool ThousandsSeparator { get; set; }

Gets or sets the editor value.

C#
public override object Value { get; set; }

Overrides: BaseInputEditor.Value

Gets or sets the type of the value to use in the editor.

C#
public Type ValueType { get; set; }

Methods

Starts the editing process. Used internally in RadGridView.

C#
public override void BeginEdit()

Overrides: BaseInputEditor.BeginEdit()

Creates a new editor element.

C#
protected override RadElement CreateEditorElement()
Returns:

RadElement

a RadElement if successful

Overrides: BaseInputEditor.CreateEditorElement()

Finishes the editing process. Used internally in RadGridView.

C#
public override bool EndEdit()
Returns:

bool

Overrides: BaseInputEditor.EndEdit()

Initializes the editor. Used internally in RadGridView.

C#
public override void Initialize(object owner, object value)
Parameters:ownerobject

The owner of this editor.

valueobject

The value of the editor.

Overrides: BaseInputEditor.Initialize(object, object)

C#
protected virtual void OnKeyDown(KeyEventArgs e)
Parameters:eKeyEventArgs
C#
protected virtual void OnKeyUp(KeyEventArgs e)
Parameters:eKeyEventArgs
C#
public virtual void OnLostFocus()

Validates the value currently entered in the editor.

C#
public override bool Validate()
Returns:

bool

Overrides: BaseInputEditor.Validate()