RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomMaskEdit.MaxLength Property

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

Pascal
property MaxLength: Integer;
C++
__property int MaxLength;

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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!