From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function GetNamePath: string; dynamic;


DYNAMIC System::UnicodeString __fastcall GetNamePath(void);


Type Visibility Source Unit Parent
function public
System.Classes TPersistent


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

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.

See Also