FMX.Memo.TMemo.MaxLength

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property MaxLength: Integer read GetMaxLength write SetMaxLength default 0;

C++

__property MaxLength = {default=0};

Properties

Type Visibility Source Unit Parent
property published
FMX.Memo.pas
FMX.Memo.hpp
FMX.Memo TMemo

Description

Specifies the maximum number of characters that can be kept in the memo control.

FMX.Memo.TMemo.MaxLength inherits from FMX.Memo.TCustomMemo.MaxLength. All content below this line refers to FMX.Memo.TCustomMemo.MaxLength.

Specifies the maximum number of characters that can be kept in the memo control.

If the text in the memo control contains more characters than the MaxLength, then the text is truncated to the MaxLength characters.

If the memo control already contains a number of characters equal to MaxLength, then the user cannot enter any more characters.

MaxLength counts end-of-line characters.

If MaxLength is 0, then no explicit length limitation is set.

Note: Even when MaxLength is 0, there may be limitations imposed by a platform on the number of characters that may be entered into a memo control.

See Also