RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCollection.GetNamePath Method

Returns a string used by the Object Inspector.

Pascal
function GetNamePath: string; override;
C++
virtual __fastcall AnsiString GetNamePath();

If the collection has no owner, GetNamePath returns the name of the collection's actual (runtime) type. If the collection is owned, GetNamePath returns the owner's name followed, if applicable, by a dot and the name of the owner's property that holds the collection. For example, GetNamePath might return "TreeView1.Items".

Note: For a collection to have an owner, it must override the GetOwner method.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!