Vcl.ValEdit.TItemProp.MaxLength
Delphi
property MaxLength: Integer read FMaxLength write SetMaxLength;
C++
__property int MaxLength = {read=FMaxLength, write=SetMaxLength, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | Vcl.ValEdit.pas Vcl.ValEdit.hpp |
Vcl.ValEdit | TItemProp |
Description
Specifies the maximum number of characters that users can enter for the item's value.
Use MaxLength to limit the number of characters that can be typed when assigning a value to the item. A value of 0 indicates that there is no application-defined limit on the length.
Note: Setting MaxLength will not truncate the existing value, 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.