RAD Studio VCL Reference
TPersistent.GetNamePath Method

Returns the name of the object as it appears in the Object Inspector.

function GetNamePath: string; dynamic;
__fastcall AnsiString GetNamePath();

GetNamePath is for internal use only. It determines the text that the Object Inspector displays for the name of the object being edited. GetNamePath is introduced in TPersistent so descendants such as collections can appear in the Object Inspector. Do not call GetNamePath directly. 

For components, GetNamePath returns the component name. For TCollectionItem objects it returns the name of the hosting component, the name of the property, and the index into the collection surrounded by brackets. 


Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!