Vcl.Mask.TMaskEdit.MaxLength

From RAD Studio API Documentation

Delphi

property MaxLength: Integer read GetMaxLength write SetMaxLength default 0;

C++

__property MaxLength = {default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Mask.pas
Vcl.Mask.hpp
Vcl.Mask TMaskEdit

Description

Specifies the maximum number of characters that can appear in the edit control. {{#multireplace:Vcl.Mask.TMaskEdit.MaxLength|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}} inherits from {{#multireplace:Vcl.Mask.TCustomMaskEdit.MaxLength|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}. All content below this line refers to {{#multireplace:Vcl.Mask.TCustomMaskEdit.MaxLength|H21=!|H25=%|H28=(|H29=)|H2A=*|H2B=+|H2F=/|H3C=<|H3D==|H3E=>|H5B=[|H5D=]|H5E=^|H7C=|}}.

Specifies the maximum number of characters that can appear in the edit control.

MaxLength is the length of the EditText. Set MaxLength to limit the number of characters that can appear in the edit control when there is no EditMask. If there is an EditMask, MaxLength is implied by the mask itself, and cannot be changed. The EditText contains blank characters for each character that has not been entered, padding the end or beginning of every optional section, so it remains constant in length.

See Also