TSubstringList.ToString Method

function ToString: string; override;

The items as one string: Text.

Returns: string - A string that holds the text; it allocates by definition.

Examples

The lines as a string.

uses Substr;

procedure Example;
var List: TSubstringList;
begin
    List := TSubstringList.Create(2);
    try
        List.Add('a');
        List.Add('b');
        Assert(List.Text = List.ToString);
    finally
        List.Free;
    end;
end;
See Also: TSubstringList.Text