RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComponentEnumerator Class

TComponentEnumerator allows the components within a containing component to be discovered.

Pascal
TComponentEnumerator = class;
C++
class TComponentEnumerator;

Classes

The TComponentEnumerator returns references to the components contained within a specified containing component. This allows an application to inspect the contents of a component at run time.  

It is useful, for example, for repeated sets of controls in panels on a form. When the user selects one panel (by button press within, for example), the code can determine the parent panel, and then use TComponentEnumerator to get the names of the controls on this particular panel. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!