System.Classes.FindNestedComponent

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

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

C++

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

プロパティ

種類 可視性 ソース ユニット
function public
System.Classes.pas
System.Classes.hpp
System.Classes System.Classes

説明

FindNestedComponent は、別のコンポーネントに含まれているコンポーネントを返します。

指定されたコンテナ コンポーネントに含まれるコンポーネントの名前を検索するには、FindNestedComponent を呼び出します。

Root には、コンテナ コンポーネント オブジェクトを指定します。

NamePath には、Root にネストしているコンポーネントの名前を指定します。

ネストしたコンポーネントが見つかった場合は、そのコンポーネントの参照が返ります。

関連項目