Vcl.Mask.TCustomMaskEdit.GetMaxChars
Delphi
function GetMaxChars: Integer;
C++
int __fastcall GetMaxChars();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | Vcl.Mask.pas Vcl.Mask.hpp |
Vcl.Mask | TCustomMaskEdit |
Description
Returns the length of the EditText.
If there is a mask, GetMaxChars returns the length of the EditText, including all blanks. This is the same as MaxLength, because editing in a masked edit control consists of replacing nonliteral characters. If there is no mask, GetMaxChars returns the length of the text in the window. In this case, the value returned by GetMaxChars may be less than MaxLength, which is the maximum number of characters that can be entered into the edit control.