Sign in Join
FPDoc Onlineexperiment

TComponentList.Extract function

Member of TComponentListpublicIn unit Contnrs

Remove a component from the list without destroying it.

Declaration

pascal
function Extract(Item: TComponent): TComponent

Arguments

Item

The component to extract.

Function result

The extracted component, or Nil if none was found.

Description

Extract removes a component ( Item) from the list, without destroying it. It overrides the implementation of TObjectList so only TComponent descendents can be extracted. It introduces no new behaviour.

Extract returns the instance that was extracted, or Nil if no instance was found.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.