Skip to content

TStrings.TrailingLineBreak

Add a linebreak to the last item

Declaration

Source position: classesh.inc line 784

public Property
  TrailingLineBreak : Boolean;

Description

TrailingLineBreak can be set to False 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 TrailingLineBreak has the opposite meaning to TStrings.SkipLastLineBreak .

See also

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