System.Classes.TList.RemoveItem
Delphi
function RemoveItem(Item: Pointer; Direction: TDirection): Integer;
C++
int __fastcall RemoveItem(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 an item from the list.
The RemoveItem method removes a specified item from the list. Because the search of the item is linear, it is an O(n) operation on a list with n entries. If the item is not found, -1 is returned.