Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomTextEditProperties.MinValue Property

Specifies the minimum numeric value an editor can display.

#Declaration

Delphi
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