Skip to main content

SpinEdit Class

The editor to edit numeric values using spin buttons.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DefaultBindingPropertyEx("Value")]
public class SpinEdit :
    BaseSpinEdit

Remarks

The SpinEdit class represents a control that consists of a text editor and a pair of spin buttons that a user can click to adjust a value.

SpinEdit

Buttons are used to increment or decrement numeric values displayed in the editor’s text edit region. The editor’s value can either be an integer or float. Each time the up (right) spin button is clicked or the UP arrow is pressed the value is increased by the RepositoryItemSpinEdit.Increment property value (use the SpinEdit.Properties property to access the repository item maintaining editor settings). Clicking the down (left) spin button or either pressing the keyboard DOWN arrow decreases the editor’s current value by the same value. The edited value is limited by the RepositoryItemSpinEdit.MaxValue and RepositoryItemSpinEdit.MinValue properties. The RepositoryItemBaseSpinEdit.SpinStyle property specifies spin button style (whether they are horizontal or vertical).

Entering Numeric Values

See the following topic to learn about the editors you can use to enter numeric values: How to: Enter numeric values.

See Also