System.Classes.IInterfaceComponentReference.GetComponent
Delphi
function GetComponent: TComponent;
C++
virtual TComponent* __fastcall GetComponent() = 0 ;
Properties
| Type | Visibility | Source | Unit | Parent | 
|---|---|---|---|---|
| function | public | System.Classes.pas System.Classes.hpp | System.Classes | IInterfaceComponentReference | 
Description
Returns a reference to the component associated by the implementing class.
GetComponent returns a TComponent value that is associated with the implementing class. For example, the TComponent class itself implements the GetComponent to return a pointer to itself.