System.Classes.TComponent.Components

From RAD Studio API Documentation
Jump to: navigation, search

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