System.Generics.Collections.TList.Last
Delphi
function Last: T; inline;
C++
T __fastcall Last();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | TList |
Description
Returns the last element in the list.
Call Last to get the last element contained within the list. The element returned by Last method can be obtained by reading the Items property with an index equal to Count - 1.