RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWinControl.ContainsControl Method

Indicates whether a specified control exists within the control.

Pascal
function ContainsControl(Control: TControl): Boolean;
C++
__fastcall Boolean ContainsControl(TControl * 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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!