System.Generics.Collections.TList.TrimExcess
Delphi
procedure TrimExcess; inline;
C++
void __fastcall TrimExcess(void);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | TList |
Description
Set list capacity to number of list elements.
TrimExcess sets Capacity to Count, getting rid of all excess capacity in the list.
See Also
Code Examples