windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemspinedit.md
Gets or sets the unit value by which the editor’s value changes when a user clicks a spin button or presses the Up Arrow or Down Arrow key.
Namespace : DevExpress.XtraEditors.Repository
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
[DXCategory("Behavior")]
public decimal Increment { get; set; }
<DXCategory("Behavior")>
Public Property Increment As Decimal
| Type | Description |
|---|---|
| Decimal |
A decimal value that specifies the unit value.
|
The Increment property specifies the unit value. The editor’s value changes by one unit when a user clicks a spin button or presses the Up Arrow or Down Arrow key.
If the editor does not accept decimal numbers (see IsFloatValue), the unit value is rounded to the nearest integer.
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.
winforms-spreadsheet-use-custom-cell-editors/CS/DevAVInvoicing/Form1.cs#L104
editor.MaxValue = maxValue;
editor.Increment = increment;
editor.IsFloatValue = false;
winforms-spreadsheet-use-custom-cell-editors/VB/DevAVInvoicing/Form1.vb#L95
editor.MaxValue = maxValue
editor.Increment = increment
editor.IsFloatValue = False
See Also