Vcl.StdCtrls.TCustomMemo.Lines
Delphi
property Lines: TStrings read FLines write SetLines;
C++
__property System::Classes::TStrings* Lines = {read=FLines, write=SetLines};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.StdCtrls.pas Vcl.StdCtrls.hpp |
Vcl.StdCtrls | TCustomMemo |
Description
Contains the individual lines of text in the memo control.
Use Lines to manipulate text in an memo control on a line-by-line basis. Lines is a TStrings object, so the TStrings methods may be used for Lines to perform manipulations such as counting the lines of text, adding new lines, deleting lines, or replacing lines with new text. For example:
MyMemo.Lines.Add(...);
To work with all the text at once, use the Text property. To manipulate individual lines of text, the Lines property works better.
Note: Although Lines is implemented as a TStrings descendant, it does not implement the support for associating objects with the strings in the list.
See Also
Code Examples