Skip to main content
A newer version of this page is available. .

SpinEdit Class

The editor to edit numeric values using spin buttons.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v17.2.dll

Declaration

[ToolboxBitmap(typeof(ToolboxIconsRootNS), "SpinEdit")]
[ToolboxTabName("DX.17.2: Common Controls")]
[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).

The following code snippets (auto-collected from DevExpress Examples) contain references to the SpinEdit class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also