TCollection.GetNamePath

Overrides TPersistent.GetNamePath to return a proper pathname.

Declaration

Source position: classesh.inc line 560

public 
  function GetNamePath : string;  Override;

Description

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

There is an owner object. The owner object returns a non-empty name path. 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

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