Returns the name of the component passed as its parameter.
function GetComponentName(Component: TComponent): string;
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.