Classes.TComponent.ComponentCount

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From Classes.pas

	property ComponentCount: Integer read GetComponentCount;


Unit: Classes

Type: property

Visibility: public

Member Of: TComponent

C++ Information

From Classes.hpp

	__property int ComponentCount = {read=GetComponentCount};


Unit: Classes

Type: property

Visibility: public

Member Of: TComponent

Description

Indicates the number of components owned by the component.


Use the ComponentCount property to determine the number of components owned by a component, for example, when iterating through the components list to perform some action on all owned components. The ComponentCount property equals the number of items in the components list. This value is one more than the highest Components index, because the first components index is 0.

See Also

Code Samples


Personal tools
Translations
Newest Version