System.Contnrs.TObjectList.ExtractItem
Delphi
function ExtractItem(Item: TObject; Direction: TList.TDirection): TObject; inline;
C++
HIDESBASE System::TObject* __fastcall ExtractItem(System::TObject* Item, System::Types::TDirection Direction);
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.ExtractItem inherits from System.Classes.TList.ExtractItem. All content below this line refers to System.Classes.TList.ExtractItem.
Removes a specified item from the list.
Call ExtractItem to remove an item from a list. After the item is removed, the index positions of all the objects that follow it are moved up and Count is decremented.
In descendent classes, ExtractItem also calls the notify method specifying the value of the removed item. This allows descendent classes to perform a proper cleanup with stored values.