property TrailingLineBreak: Boolean read FTrailingLineBreak write FTrailingLineBreak;
Whether Text ends with a LineBreak after the last item; True by default.
Returns: Boolean
Examples
No line break after the last item.
uses Substr;
procedure Example;
var List: TSubstringList;
begin
List := TSubstringList.Create(2);
try
List.Add('a');
List.Add('b');
List.TrailingLineBreak := False;
Assert(List.Text = 'a' + sLineBreak + 'b');
finally
List.Free;
end;
end;
See Also: TSubstringList.Text, TSubstringList.LineBreak