Skip to content

TCollectionItem.GetNamePath

Returns the namepath of this collection item.

Declaration

Source position: classesh.inc line 501

public 
  function 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

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