System.Contnrs.TComponentList.ExtractItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ExtractItem(Item: TComponent; Direction: TList.TDirection): TComponent; inline;

C++

HIDESBASE System::Classes::TComponent* __fastcall ExtractItem(System::Classes::TComponent* Item, System::Types::TDirection Direction);

Properties

Type Visibility Source Unit Parent
function public
System.Contnrs.pas
System.Contnrs.hpp
System.Contnrs TComponentList

Description


Removes a specified item from the list.

System.Contnrs.TComponentList.ExtractItem inherits from System.Classes.TList.ExtractItem. All content below this line refers to System.Classes.TList.ExtractItem.

Removes a specified item from the list.

Call ExtractItem to remove an item from a list. After the item is removed, the index positions of all the objects that follow it are moved up and Count is decremented.

In descendent classes, ExtractItem also calls the notify method specifying the value of the removed item. This allows descendent classes to perform a proper cleanup with stored values.

See Also