System.Generics.Collections.TList.RemoveItem
Delphi
function RemoveItem(const Value: T; Direction: TDirection): Integer; inline;
C++
int __fastcall RemoveItem(const T Value, System::Types::TDirection Direction);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | TList |
Description
Removes the first occurrence of value, looping through the list items in the specified direction. In other words, it removes the first or last occurrence of Value depending on the specified Direction.
RemoveItem is identical to Remove, only that it allows you to specify in which Direction to search the list, so that you can remove the last occurrence instead of the first one.
See Also
- System.Generics.Collections.TList.Remove
- System.Generics.Collections.TList.Clear
- System.Generics.Collections.TList.Delete
- System.Generics.Collections.TList.DeleteRange
- System.Generics.Collections.TList.Extract
- System.Generics.Collections.TList.ExtractItem
- System.Generics.Collections.TList.IndexOf
- System.Generics.Collections.TList.OnNotify