Vcl.Controls.TWinControl.RemoveControl

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure RemoveControl(AControl: TControl);

C++

void __fastcall RemoveControl(TControl* AControl);

Properties

Type Visibility Source Unit Parent
procedure
function
public
Vcl.Controls.pas
Vcl.Controls.hpp
Vcl.Controls TWinControl

Description

Removes a specified control from the Controls array.

RemoveControl removes a child control from the Controls property. After calling RemoveControl, the control is no longer the parent of the child specified by the AControl parameter.

Applications should not call RemoveControl directly. Child controls are automatically inserted and removed when added or deleted at design time. At runtime, use the Parent property of the child control to remove it from the Controls array.

See Also

Code Examples