function First: Substring;
The first item.
Returns: Substring - The first item, read in place as List[0] reads it.
Examples
The first item, in place.
uses Substr;
procedure Example;
var List: TSubstringList;
begin
List := TSubstringList.Create(2);
try
List.Add('a');
List.Add('z');
Assert((List.First = 'a') and (List.First.Data = List[0].Data));
finally
List.Free;
end;
end;
See Also: TSubstringList.Last, TSubstringList.Strings