[Overview][Constants][Types][Classes][Procedures and functions][Variables] | Reference for unit 'Classes' (#fcl)

# TComponent.ComponentIndex

Index of component in it's owner's list.

## Declaration

`public property TComponent.ComponentIndex: Integer read GetComponentIndex write SetComponentIndex;`

## Description

ComponentIndex is the index of the current component in its owner's list of components. If the component has no owner, the value of this property is -1.

## See also

TComponent.Components |  | Indexed list (zero-based) of all owned components.
TComponent.ComponentCount |  | Count of owned components
TComponent.Owner |  | Owner of this component.