DesignIntf.IDesigner60.CreateCurrentComponent

From RAD Studio API Documentation
Jump to: navigation, search

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 ;

Properties

Type Visibility Source Unit Parent
function public
DesignIntf.pas
DesignIntf.hpp
DesignIntf IDesigner60

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