System.Classes.TCollection.GetNamePath

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetNamePath: string; override;

C++

DYNAMIC System::UnicodeString __fastcall GetNamePath();

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes TCollection

Description

Returns a string used by the Object Inspector.

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.

See Also