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

# TCollectionItem.GetNamePath

Returns the namepath of this collection item.

## Declaration

`protected function TCollectionItem.GetNamePath: String; override;`

## Description

GetNamePath overrides the TPersistent.GetNamePath method to return the name of the managing collection and appends its TCollectionItem.Index property.

## See also

TCollectionItem.Collection |  | Pointer to the collection managing this item.
TPersistent.GetNamePath |  | Returns a string that can be used to identify the class instance.
TCollectionItem.Index |  | Index of the item in its managing collection TCollection.Items property.