Vcl.Mask.TCustomMaskEdit.MaxLength

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property MaxLength: Integer read GetMaxLength write SetMaxLength default 0;

C++

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

Properties

Type Visibility Source Unit Parent
property protected
Vcl.Mask.pas
Vcl.Mask.hpp
Vcl.Mask TCustomMaskEdit

Description

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