Vcl.Controls.TWinControl.FindChildControl

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FindChildControl(const ControlName: string): TControl;

C++

TControl* __fastcall FindChildControl(const System::UnicodeString ControlName);

Properties

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

Description

Returns a child control given its name.

Call FindChildControl to locate a specified child control. FindChildControl searches the control's children and returns the control with the specified name. If no child controls match the specified name, FindChildControl returns nil (Delphi) or NULL (C++).

Note: FindChildControl only locates immediate children of the control. It can't find a control that is a child of one of the control's children.

See Also