FMX.Memo.TCustomMemoModel.MaxLength

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property MaxLength: Integer read FMaxLength write SetMaxLength;

C++

__property int MaxLength = {read=FMaxLength, write=SetMaxLength, nodefault};

Properties

Type Visibility Source Unit Parent
property public
FMX.Memo.pas
FMX.Memo.hpp
FMX.Memo TCustomMemoModel

Description

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.

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