System.Classes.TComponent.Components
Delphi
property Components[Index: Integer]: TComponent read GetComponent;
C++
__property TComponent* Components[int Index] = {read=GetComponent};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | System.Classes.pas System.Classes.hpp |
System.Classes | TComponent |
Description
Lists all components owned by the component.
Use Components to access any of the components owned by this component, such as the components owned by a form. The Components property is most useful when referring to owned components by number rather than name. It is also used internally for iterative processing of all owned components.
Index
ranges from 0 to ComponentCount minus 1.
See Also
Code Examples
- ComponentCountProperty (Delphi)
- OnActivate (Delphi)
- OnActivate2 (Delphi)
- ComponentCount (C++)
- OnActivate (C++)
- OnActivate2 (C++)