DesignIntf.IDesigner60.CreateCurrentComponent

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 CreateCurrentComponent(Parent: TComponent; const Rect: TRect): TComponent;

C++

virtual System::Classes::TComponent* __fastcall CreateCurrentComponent(System::Classes::TComponent* Parent, const System::Types::TRect &Rect) = 0 ;

Description

Creates an instance of the component that is currently selected on the component palette.

Call CreateCurrentComponent to create an instance of the component that is selected on the component palette.

Parent is the parent of the newly created component.

Rect specifies the boundaries of the newly created component.

CreateCurrentComponent returns the new component instance.

See Also