System.Generics.Collections.TThreadList.RemoveItem
Delphi
procedure RemoveItem(const Item: T; Direction: TDirection);
C++
void __fastcall RemoveItem(const T Item, System::Types::TDirection Direction);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | TThreadList |
Description
Removes the first occurrence of the value, looping through the thread-safe list items in the specified direction. In other words, it removes the first or last occurrence of Value depending on the specified Direction.
This function is identical to Remove, only that it allows you to specify in which Direction to search the thread-safe list, which allows you to remove the last occurrence instead of the first one.