Controls.TWinControl.ContainsControl

From RAD Studio VCL Reference
Jump to: navigation, search

Contents

Delphi Information

From Controls.pas

	function ContainsControl(Control: TControl): Boolean;


Unit: Controls

Type: method

Visibility: public

Member Of: TWinControl

C++ Information

From Controls.hpp

	bool __fastcall ContainsControl(Controls::TControl * Control);


Unit: Controls

Type: method

Visibility: public

Member Of: 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
Translations
Newest Version