RAD Studio VCL Reference
TCollection.GetNamePath Method

Returns a string used by the Object Inspector.

function GetNamePath: string; override;
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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!