System.Classes.TComponent.ComponentCount

From Appmethod Libraries
Jump to: navigation, search

Object Pascal

property ComponentCount: Integer read GetComponentCount;

C++

__property int ComponentCount = {read=GetComponentCount, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Classes.pas
System.Classes.hpp
System.Classes 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 an 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 Examples