System.Classes.TThreadList.RemoveItem
Delphi
procedure RemoveItem(Item: Pointer; Direction: TList.TDirection);
C++
void __fastcall RemoveItem(void * Item, System::Types::TDirection Direction);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Classes.pas System.Classes.hpp |
System.Classes | TThreadList |
Description
Removes the first reference to the Item parameter from the items array. The returned value is the index of the removed item.
Call RemoveItem to remove a specific item from the items array when its index is unknown. The value returned is the item's index in the array before it was removed. After an item is removed, all the items that follow it are moved up in the index position.
If the items array contains more than one copy of the pointer, only the first copy is deleted.