DesignIntf.IDesigner.CreateChild

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function CreateChild(ComponentClass: TComponentClass; Parent: TComponent): TComponent;

C++

virtual System::Classes::TComponent* __fastcall CreateChild(System::Classes::TComponentClass ComponentClass, System::Classes::TComponent* Parent) = 0 ;

Properties

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

Description

Creates a child control onto its parent.

Call CreateChild to create a child that is exclusively managed by its parent. For example, a TListBoxItem in a TListBox component. Notice that the designer will not determine if the parent is a proper container, so the user should select the correct one.

See Also