Sign in Join
FPDoc Onlineexperiment

TComponentEnumerator class

In unit Classes

Implements IEnumerator for the TComponent class.

Declaration

pascal
TComponentEnumerator = class

Description

TComponentEnumerator implements the IEnumerator interface for the TComponent class, so the TComponent class can be used in a for ... in loop over the Components child components of the component. It is returned by the GetEnumerator method of TComponent.

See also

Properties

CurrentpublicCurrent pointer in the list.

Methods

CreatepublicInitialize a new instance of TComponentEnumerator.
GetCurrentpublicReturn the current pointer in the list.
MoveNextpublicMove the position of the enumerator to the next position in the children of the component.

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