Back to Devexpress

SpinEdit.AllowRoundOutOfRangeValue Property

wpf-devexpress-dot-xpf-dot-editors-dot-spinedit-66b85618.md

latest1.9 KB
Original Source

SpinEdit.AllowRoundOutOfRangeValue Property

Gets or sets whether automatic rounding of out of range values is enabled. This is a dependency property.

Namespace : DevExpress.Xpf.Editors

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool AllowRoundOutOfRangeValue { get; set; }
vb
Public Property AllowRoundOutOfRangeValue As Boolean

Property Value

TypeDescription
Boolean

true to automatically round out of range values; otherwise, false.

|

Remarks

The range of values which can be assigned to the editor’s value is specified by the SpinEdit.MinValue and SpinEdit.MaxValue properties. If the AllowRoundOutOfRangeValue property is set to true and a user inputs a value which is greater than the maximum allowed value, the edit value is automatically set to SpinEdit.MaxValue. Otherwise, if the value entered by a user is less than the minimum allowed value, the edit value is set to SpinEdit.MinValue.

The AllowRoundOutOfRangeValue option is not in effect if the editor’s value is specified in code.

See Also

SpinEdit Class

SpinEdit Members

DevExpress.Xpf.Editors Namespace