RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TScriptComponent.GetComponent Method

Returns a reference to the component associated by the implementing class.

Pascal
function GetComponent: TComponent;
C++
__fastcall TComponent * GetComponent();

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. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!