Vcl.ComCtrls.TComboBoxEx.MaxLength
Delphi
property MaxLength;
C++
__property MaxLength = {default=0};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.ComCtrls.pas Vcl.ComCtrls.hpp |
Vcl.ComCtrls | TComboBoxEx |
Description
Specifies the maximum number of characters the user can type into the edit portion of the combo box.
Vcl.ComCtrls.TComboBoxEx.MaxLength inherits from Vcl.StdCtrls.TCustomCombo.MaxLength. All content below this line refers to Vcl.StdCtrls.TCustomCombo.MaxLength.
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.