System.Classes.TComponentEnumerator.Current

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Current: TComponent read GetCurrent;

C++

__property TComponent* Current = {read=GetCurrent};

Properties

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

Description

Returnes the currently selected component.

Before you ever use the Current, 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. Current returns a reference to the component currently referenced after the last MoveNext operation.

The Current property has the same effect as GetCurrent

See Also