Skip to main content
A newer version of this page is available. .

SpinEditSettings.AllowRoundOutOfRangeValue Property

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

Namespace: DevExpress.Xpf.Editors.Settings

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Core, DevExpress.Wpf.Core

Declaration

public bool AllowRoundOutOfRangeValue { get; set; }

Property Value

Type Description
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 MinValue and MaxValue properties. If the AllowRoundOutOfRangeValue property is set to true and an end user inputs a value which is greater than the maximum allowed value, the edit value is automatically set to MaxValue. If the value entered by an end user is less than the minimum allowed value, the edit value is set to MinValue.

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

See Also