RepositoryItemSpinEdit.Increment Property
Gets or sets a value by which the editor’s value changes each time the keyboard UP or DOWN key is pressed or the spin button is clicked.
Namespace: DevExpress.XtraEditors.Repository
Assembly: DevExpress.XtraEditors.v18.2.dll
Declaration
[DXCategory("Behavior")]
[SmartTagProperty("Increment", "")]
public decimal Increment { get; set; }
Property Value
Type | Description |
---|---|
Decimal | A decimal value to be incremented to the editor’s value when a user clicks a spin button or presses the keyboard UP or DOWN key. |
Remarks
This property specifies the granularity of changes made by spin buttons or keyboard UP and DOWN keys. Each time a user clicks a spin button or presses arrow keys, the editor’s value is incremented or decremented by the Increment property value.
If the control’s RepositoryItemSpinEdit.IsFloatValue property is set to false, the Increment is rounded to the nearest integer before it is added to or subtracted from the editor’s value.
If you need to restrict the range of values allowable, use the RepositoryItemSpinEdit.MinValue and RepositoryItemSpinEdit.MaxValue properties.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Increment property.
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.