RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComponentEnumerator.Current Property

Returnes the currently selected component.

Pascal
property Current: TComponent;
C++
__property TComponent * Current;

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 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!