Table of Contents

TComponentContainer.CreateWithComponent Constructor

Creates the component container component with the initial data.

Remarks

CreateWithComponent instantiates the TComponentContainer control with the data needed by it to work, for example, the component which will be wrapped by the control. It is called internally by the form designer, you don't need to call it directly.

Syntax

Unit: FormDesigner

constructor TComponentContainer.CreateWithComponent(AOwner: TComponent; AComponent: TComponent; ADesigner: TAdvCustomFormDesigner; AVisible: Boolean = True);

Parameters

<-> Parameter Type Description
AOwner TComponent Specifies the control's owner.
AComponent TComponent The component to be represented by the TComponentContainerT.
ADesigner TAdvCustomForm​Designer The form designer that will use the container.
AVisible Boolean Optional: Default value is True

Defines if container component is visible

See also