blazor-devexpress-dot-blazor-dot-dxspinbuttons-f17c616f.md
Specifies how to arrange spin buttons (horizontally or vertically).
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public override Orientation? Orientation { get; set; }
| Type | Description |
|---|---|
| Nullable<Orientation> |
An enumeration value. If the Orientation property is not specified (the value is null), the Spin Edit automatically arranges its buttons based on the device type: horizontally on mobile and tablet devices, and vertically on other devices.
|
Available values:
| Name | Description |
|---|---|
| Horizontal |
Sets horizontal orientation.
| | Vertical |
Sets vertical orientation.
|
The DevExpress Blazor Spin Edit component arranges its built-in spin buttons vertically.
To arrange spin buttons horizontally (display two separate editor buttons), follow these steps:
false to hide built-in spin buttons.DxSpinButtons.Orientation property to Horizontal.<DxSpinEdit Value="15" ShowSpinButtons="false">
<Buttons>
<DxSpinButtons Orientation="Orientation.Horizontal"/>
</Buttons>
</DxSpinEdit>
Note
If the Orientation property is not specified (the value is null), the Spin editor automatically arranges its buttons based on the device type: horizontally on mobile and tablet devices, and vertically on other devices.
See Also