DesignIntf.IDesigner60.GetObjectName

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
DesignIntf.pas
DesignIntf.hpp
Unit: DesignIntf
Parent: IDesigner60

Delphi

function GetObjectName(Instance: TPersistent): string;

C++

virtual System::UnicodeString __fastcall GetObjectName(System::Classes::TPersistent* Instance) = 0 ;

Description

Returns the name of the object passed as its parameter.

Call GetObjectName to obtain the name of a persistent object. This is the inverse of GetObject. GetObjectName is useful when working with components that include constituent objects that are not components, such as the TStatusPanel objects that TStatusBar uses.

See Also