Vcl.StdCtrls.TCustomCombo.MaxLength

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property MaxLength: Integer read FMaxLength write SetMaxLength default 0;

C++

__property int MaxLength = {read=FMaxLength, write=SetMaxLength, default=0};

Properties

Type Visibility Source Unit Parent
property protected
Vcl.StdCtrls.pas
Vcl.StdCtrls.hpp
Vcl.StdCtrls TCustomCombo

Description

Specifies the maximum number of characters the user can type into the edit portion of the combo box.

Use MaxLength to limit the number of characters that the user can enter into the edit portion of the combo box. A value of 0 indicates that there is no application-defined limit on the length.

Note: Setting MaxLength will not truncate the existing text, it merely prevents the user from adding more text after reaching the limit of MaxLength characters.

Note: Even when MaxLength is 0, there may be limitations imposed by the operating system on the number of characters that may be entered into an edit control.

See Also