A newer version of this page is available. Switch to the current version.

RepositoryItemBaseSpinEdit.SpinButtonIndex Property

Gets or sets a value specifying which editor button is the spin button used to increment or decrement the edited value.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll


public virtual int SpinButtonIndex { get; set; }

Property Value

Type Default Description


An integer value representing the spin button’s zero-based index.


Each button displayed by the spin editor has its own index that is the button’s position within the editor’s button collection. By default, a spin button used to increment or decrement the editor’s value is displayed first. Use the SpinButtonIndex property to specify which editor button is actually the spin button.

Setting the SpinButtonIndex property to a value less than 0 automatically sets it to 0. In this case, the first button is the spin button. If the SpinButtonIndex property is set to a value greater or equal than the last available button index, the spin button will be the last button.

Changing this property value at runtime raises the RepositoryItem.PropertiesChanged event.


Changing the EditorButton.Kind property for the spin button is not in effect.

See Also