Sign in Join
FPDoc Onlineexperiment

TComponentList.Add function

Member of TComponentListpublicIn unit Contnrs

Add a component to the list.

Declaration

pascal
function Add(AComponent: TComponent): Integer

Arguments

AComponent

The component to add.

Function result

Index at which the component was added.

Description

Add overrides the Add operation of it's ancestors, so it only accepts TComponent instances. It introduces no new behaviour.

The function returns the index at which the component was added.

Errors

If not enough memory is available to expand the list, an exception may be raised.

See also

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