RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TComponentEditor.GetComponent Method

Returns the value of the Component property.

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

Use GetComponent to read from and make changes to the component associated with the component editor. Calling GetComponent is equivalent to reading the Component property, but unlike the Component property, is available through the IComponentEditor interface. 

A component editor is created for each instance of the registered component class when it is selected in the form designer. GetComponent returns the selected instance.

Note: When the component editor makes changes to the component, it must call the Modified method of the form designer that is specified by the Designer property.
 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!