Classes.TComponent.InsertComponent

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From Classes.pas

	procedure InsertComponent(AComponent: TComponent);


Unit: Classes

Type: method

Visibility: public

Member Of: TComponent

C++ Information

From Classes.hpp

	void __fastcall InsertComponent(Classes::TComponent * AComponent);


Unit: Classes

Type: method

Visibility: public

Member Of: TComponent

Description

Establishes the component as the owner of a specified component.


InsertComponent adds the component passed in the AComponent parameter to the end of the Components array property. The inserted component must have no name (no specified Name property value), or the name must be unique among all others in the Components list.

When the owning component is destroyed, AComponent is destroyed also.

Components are automatically inserted and removed when visually manipulating them in the form designer. Use InsertComponent when manually adding components to another Owner component's Components list.

See Also

Code Samples


Personal tools
Translations
Newest Version