[Overview][Types][Classes][Procedures and functions] Reference for unit 'contnrs' (#fcl)

TComponentList.Extract

Remove a component from the list without destroying it.

Declaration

Source position: contnrs.pp line 105

public function TComponentList.Extract(

  Item: TComponent

):TComponent;

Arguments

Item

  

The component to extract.

Function result

The extracted component, or Nilif none was found.

Description

Extractremoves a component (Item) from the list, without destroying it. It overrides the implementation of TObjectListso only TComponentdescendents can be extracted. It introduces no new behaviour.

Extractreturns the instance that was extracted, or Nilif no instance was found.

See also

TComponentList.Remove

  

Remove a component from the list, possibly destroying it.

TObjectList.Extract

  

Extract an object from the list.