DesignIntf.IDesigner60.CreateComponent

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
DesignIntf.pas
DesignIntf.hpp
Unit: DesignIntf
Parent: IDesigner60

Delphi

function CreateComponent(ComponentClass: TComponentClass; Parent: TComponent;
Left, Top, Width, Height: Integer): TComponent;

C++

virtual System::Classes::TComponent* __fastcall CreateComponent(System::Classes::TComponentClass ComponentClass, System::Classes::TComponent* Parent, int Left, int Top, int Width, int Height) = 0 ;

Description

Creates a specified component.

Call CreateComponent to create an instance of ComponentClass at the position specified by the Left and Top parameters with the size specified by the Width and Height parameters. The new component will be a child of the component specified by the Parent parameter.

See Also