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

# TCollection.GetNamePath

Overrides TPersistent.GetNamePath to return a proper pathname.

## Declaration

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

## Description

GetNamePath returns the name path for this collection. If the following conditions are satisfied:

1. There is an owner object.
2. The owner object returns a non-empty name path.
3. The TCollection.Propname property is not empty

collection has an owner and the owning object has a name, then the function returns the owner name, followed by the propname. If one of the conditions is not satisfied, then the classname is returned.

## See also

TCollection.GetOwner
TCollection.Propname |  | Name of the property that this collection represents.