wpf-devexpress-dot-xpf-dot-editors-dot-spinedit.md
Gets or sets the editor’s minimum value. This is a dependency property.
Namespace : DevExpress.Xpf.Editors
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
public decimal? MinValue { get; set; }
Public Property MinValue As Decimal?
| Type | Description |
|---|---|
| Nullable<Decimal> |
A Decimal value which represents the minimum allowed value.
|
The maximum allowed value is specified using the SpinEdit.MaxValue property. To specify the editor’s current value, use the BaseEdit.EditValue property.
If you try to set the BaseEdit.EditValue property to a new value that exceeds the MinValue and SpinEdit.MaxValue range, the editor functions as follows:
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 MinValue.
The AllowRoundOutOfRangeValue option is not in effect if the editor’s value is specified in code.
The SpinEdit does not raise the BaseEdit.Validate event if the entered value exceeds the MinValue or SpinEdit.MaxValue property.
See Also