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

# TCollectionItem.GetNamePath

Returns the namepath of this collection item.

## Declaration

Source position: classesh.inc line 500

`public 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.

Documentation generated on: May 14 2021