DesignIntf.IDesigner60.GetComponentName

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetComponentName(Component: TComponent): string;

C++

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

Properties

Type Visibility Source Unit Parent
function public
DesignIntf.pas
DesignIntf.hpp
DesignIntf IDesigner60

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