Show: Delphi C++
Display Preferences

Vcl.Controls.TWinControl.ContainsControl

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function ContainsControl(Control: TControl): Boolean;

C++

bool __fastcall ContainsControl(TControl* Control);

Properties

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

Description

Indicates whether a specified control exists within the control.

Use ContainsControl to find out if a particular control exists within this control. ContainsControl returns true if the specified value of the Control parameter is a child control of this control. The Control parameter need not be an immediate child (in the Controls property), but may be contained in a child of the control, or in a child of a child of the control, for indefinitely many levels deep.

If the method returns false, the specified control is not within the control.

See Also

Personal tools
In Other Languages
Previous Versions
Assistance