Show: Delphi C++
Display Preferences

FMX.Memo.TMemo.Lines

From XE2 API Documentation
Jump to: navigation, search

Delphi

property Lines: TStrings read FLines write SetLines;

C++

__property System::Classes::TStrings* Lines = {read=FLines, write=SetLines};

Contents

Properties

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

Description

Provides access to the individual lines in the TMemo control.

Use Lines to manipulate the individual lines in a TMemo control.

Lines is a TStrings object, so you can use TStrings methods to easily work with the Lines property.

For example, you can count the number of lines of text:

 ShowMessage(The number of lines in my file is:' + IntToStr (Memo1.Lines.Count));

You can add new lines:

 Memo1.Lines.Append(‘New text at the end of memo’);

You can delete lines:

 Memo1.Lines.Delete(0); // Delete fist line from Memo

You can replace lines with new text:

 Memo1.Lines[8] := ‘Replace 9th  line with this text’;


See Also

Code Examples

Personal tools
Previous Versions
Translations