API:System.Contnrs.TObjectList.Extract
Delphi
function Extract(Item: TObject): TObject; inline;
C++
HIDESBASE System::TObject* __fastcall Extract(System::TObject* Item);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Contnrs.pas System.Contnrs.hpp |
System.Contnrs | TObjectList |
Description
Removes a specified item from the list.
System.Contnrs.TObjectList.Extract inherits from System.Classes.TList.Extract. All content below this line refers to System.Classes.TList.Extract.
Removes a specified item from the list.
Call Extract to remove an item from the list. After the item is removed, all the objects that follow it are moved up in index position and Count is decremented.
To remove the reference to an item without deleting the entry from the Items array and changing the Count, set the Items property for Index to nil (Delphi) or NULL (C++).