System.Classes.TComponentEnumerator.GetCurrent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetCurrent: TComponent; inline;

C++

TComponent* __fastcall GetCurrent();

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TComponentEnumerator

Description

Retrieves a reference to the current component.

Before you ever call GetCurrent, you must call MoveNext, successfully, or an exception will be thrown.

MoveNext moves through the list of components within the parent component specified at class instantiation. GetCurrent returns a reference to the component currently referenced after the last MoveNext operation.

The Current property has the same effect as GetCurrent

See Also