RAD Studio VCL Reference
TWinControl.ContainsControl Method

Indicates whether a specified control exists within the control.

function ContainsControl(Control: TControl): Boolean;
__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) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!