System.Classes.TStrings.Text
Delphi
property Text: string read GetTextStr write SetTextStr;
C++
__property System::UnicodeString Text = {read=GetTextStr, write=SetTextStr};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.Classes.pas System.Classes.hpp |
System.Classes | TStrings |
Description
Lists the strings in the TStrings object as a single string with the individual strings delimited by carriage returns and line feeds.
Use Text to get or set all the strings in the TStrings object in a single string delimited by carriage return, line feed pairs.
When setting Text, the value will be parsed and separated into substrings whenever the LineBreak value is encountered. For backward compatibility, on POSIX
, if the LineBreak separator is LF
, then LF
, CR
, or CRLF
are treated as separators. On Windows if the LineBreak separator is CRLF
, then LF
, CR
, or CRLF
are treated as separators.
If the strings in the list contain carriage return or linefeed characters, a less ambiguous format for the strings is available through the CommaText or DelimitedText property.