Skip to content

TStrings.SkipLastLineBreak

Do not add a linebreak to the last item.

Declaration

Source position: classesh.inc line 1186

public property SkipLastLineBreak: Boolean;

Description

SkipLastLineBreak can be set to True to omit a linebreak character after the last string in the TStrings.Text. This also means when writing to file, that the file will not have a terminating linebreak character.

Note that SkipLastLineBreak has the opposite meaning to TStrings.TrailingLineBreak.

See also

Name Description
TStrings.TrailingLineBreak Add a linebreak to the last item.
TStrings.LineBreak LineBreak character to use.
TStrings.Text Contents of the list as one big string.
TStrings.Options A set of TStringsOption - various boolean properties.