System.Generics.Collections.TList.RemoveItem

From RAD Studio API Documentation
Jump to: navigation, search

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