DesignIntf.IDesigner60.GetComponentName

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 GetComponentName(Component: TComponent): string;

C++

virtual System::UnicodeString __fastcall GetComponentName(System::Classes::TComponent* Component) = 0 ;

Description

Returns the name of the component passed as its parameter.

Call GetComponentName to obtain the name of a component. This is the inverse of GetComponent.

Note: If the component is in the current root object, GetComponentName returns the Name property of the component itself. If the component is in another entity, GetComponentName qualifies the component name with the name of the object in which it resides.

See Also