Skip to main content

TcxCustomTextEditProperties.MinValue Property

Specifies the minimum numeric value an editor can display.

Declaration

property MinValue;

Property Value

Type
Double

Remarks

Use MaxValue and MinValue properties to specify the range of values for the editors that display numeric values. Once the range is specified, a user can post only a number within this range; otherwise, the “Value out of bounds” exception is raised. If MaxValue and MinValue property values are equal, the editor accepts any number.

In spin editors, you need to enable the Properties.ExceptionOnInvalidInput option to allow the editor to raise the exception.

In data-aware editors, the default value of the MinValue property is determined by the MinValue property of the dataset field (a TField descendant) that is bound to the editor (default values can be obtained only for integer, float, and BCD dataset fields). Call the RestoreDefaults method to revert the MinValue property and other properties to default values retrieved from the corresponding dataset field properties.

In date/time editors, use the Properties.MinDate and Properties.MaxDate properties to specify the range of input date/time values.

See Also