MaxLength Property

Applies to TestComplete 15.69, last modified on November 13, 2024

Specifies the maximum number of characters that can be entered into the component.

Declaration

componentPropObj.MaxLength
Read-Write Property Integer
componentPropObj     One of the objects listed in the Applies To section  

Applies To

The property applies to the following objects:

TcxButtonEditProperties, TcxMemoProperties, TcxMRUEditProperties, TcxTextEditProperties

Description

The MaxLength property lets you get or set the maximum number of characters that can be entered into the component.

Property Value

An integer value that signifies the maximum length of the inputted text. The default value is 0, which means that the text length is unlimited.

Remarks

It is possible to make the component hold text whose length is more than MaxLength programmatically, by setting the value to the property which holds the component text.

See Also

VisibleLineCount Property

Highlight search results