System.Classes.TComponent.Components

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

Delphi

property Components[Index: Integer]: TComponent read GetComponent;

C++

__property TComponent* Components[int Index] = {read=GetComponent};

プロパティ

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


説明

コンポーネントが所有するすべてのコンポーネントをリストします。

Components を使用すると、このコンポーネントに所有されるいずれのコンポーネントにもアクセスすることができます。たとえば、フォームに所有されるコンポーネント群などです。Components プロパティは、所有されているコンポーネントを、名前ではなく数字で参照している場合に最も便利です。また、すべての所有コンポーネントを順次処理する際に、内部的に使用されます。


Index の範囲は、0 から ComponentCount - 1 です。

関連項目

コード サンプル