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.v24.2.dll
Declaration
[DefaultValue(0)]
[DXCategory("Behavior")]
public virtual int SpinButtonIndex { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Int32 | 0 | An integer value representing the spin button’s zero-based index. |
Remarks
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.
Note
Changing the EditorButton.Kind property for the spin button is not in effect.