System.Classes.TList.ExtractItem
Delphi
function ExtractItem(Item: Pointer; Direction: TDirection): Pointer;
C++
void * __fastcall ExtractItem(void * Item, System::Types::TDirection Direction);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Classes.pas System.Classes.hpp |
System.Classes | TList |
Description
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.