API:System.Contnrs.TComponentList.Extract

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function Extract(Item: TComponent): TComponent; inline;

C++

HIDESBASE System::Classes::TComponent* __fastcall Extract(System::Classes::TComponent* Item);

Properties

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

Description

Removes a specified object from the list without freeing it.

System.Contnrs.TComponentList.Extract inherits from System.Contnrs.TObjectList.Extract. All content below this line refers to System.Contnrs.TObjectList.Extract.

Removes a specified object from the list without freeing it.

Call Extract to remove an object from the list without freeing the object itself. After an object is removed, all the objects that follow it are moved up in index position and Count is decremented.

See Also