Show: Delphi C++
Display Preferences

System.Classes.TComponentEnumerator

From RAD Studio API Documentation
Jump to: navigation, search

System.TObjectTComponentEnumerator

Delphi

TComponentEnumerator = class

C++

class PASCALIMPLEMENTATION TComponentEnumerator : public System::TObject

Properties

Type Visibility Source Unit Parent
class public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

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

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.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance