System.Classes.FindNestedComponent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function FindNestedComponent(const Root: TComponent; const NamePath: string): TComponent;

C++

extern DELPHI_PACKAGE TComponent* __fastcall FindNestedComponent(TComponent* const Root, const System::UnicodeString NamePath);

Properties

Type Visibility Source Unit Parent
function public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

Description

FindNestedComponent returns a component contained within another.

Call FindNestedComponent to find a component by name contained within a specified containing component.

Root specifies the containing component object.

NamePath gives the name of the component nested in Root.

If found, a reference to the nested component is returned.

See Also