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

# TCustomComboBox.MaxLength

The maximum length for text entered in the edit box for the control.

## Declaration

Source position: stdctrls.pp line 396

`protected property TCustomComboBox.MaxLength : Integer read GetMaxLength write SetMaxLength default 0;`

## Description

MaxLength is an Integer property which contains the maximum length for a value entered in the Text for the control. It controls the number of characters allowed in the edit box, but does not limit the length of the value that can be directly assigned to Text. MaxLength is passed to and read from the widgetset class when a handle has been assigned for the control.

The default value for the property is 0 (zero), and indicates that a maximum length has not been specified in the property. Setting the value for the property does not alter the existing value in Text.

## See also

TCustomComboBox.Text |  | The value in the edit box for the control.