Back to Devexpress

DxSpinEdit<T>.Increment Property

blazor-devexpress-dot-blazor-dot-dxspinedit-1-97d3c2d6.md

latest1.7 KB
Original Source

DxSpinEdit<T>.Increment Property

Specifies the increment value for the Spin Edit.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[Parameter]
public T Increment { get; set; }

Property Value

TypeDescription
T

A unit value. The default value is 1.

|

Remarks

The Increment property specifies the value added to/subtracted from the editor’s value each time a user performs the following actions:

  • Clicks the increment or decrement spin button.
  • Scrolls the mouse wheel while the editor is focused.
  • Press the UP ARROW or DOWN ARROW key while the editor is focused.
razor
<DxSpinEdit @bind-Value="DecimalValue"
            Increment="0.1M"
            MinValue="0M"
            MaxValue="1M" />

@code {
    Decimal DecimalValue { get; set; } = 0.5M;
}

The data type of the Value and Increment property values should match. For instance, an error occurs if you specify an integer value and floating-point increment.

Run Demo: Spin Edit - Custom Increment

See Also

DxSpinEdit<T> Class

DxSpinEdit<T> Members

DevExpress.Blazor Namespace