[Overview][Classes][Procedures and functions][Index] | Reference for unit 'Spin' (#lcl)

# TCustomSpinEdit.MaxValue

Maximum value allowed for the spin edit control.

## Declaration

Source position: spin.pp line 163

`public property TCustomSpinEdit.MaxValue : Integer read GetMaxValue write SetMaxValue default 0;`

## Description

MaxValue contains the maximum value allowed for the spin edit control. It is used, along with MinValue, to determine the range of values allowed in the Value property.

When MinValue and MaxValue have the same value, or MaxValue is smaller than MinValue, the range limit is not enforced. This allows any value to be assigned to the control.

## See also

TCustomSpinEdit.MinValue |  | Minimum value allowed for the spin edit control.
TCustomSpinEdit.Value |  | The value for the spin edit control.
TCustomSpinEdit.Increment |  | The value by which the value of the control should be increased/decreased when the user clicks one of the arrows or one of the keyboard up/down arrows.
TCustomSpinEdit.GetLimitedValue |  | Gets the value for the control limited the range in MinValue and MaxValue.