表示: Delphi C++
表示設定

System.Classes.TComponent.ComponentCount

提供:XE2 API Documentation
移動: 案内, 検索

Delphi

property ComponentCount: Integer read GetComponentCount;

C++

__property int ComponentCount = {read=GetComponentCount, nodefault};

プロパティ

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

説明

そのコンポーネントが所有しているコンポーネントの数を示します。

ComponentCount プロパティを使用すると,コンポーネントが所有しているコンポーネントの数を決定できます。たとえば,コンポーネントリストを反復処理して,すべての所有コンポーネントに特定のアクションを実行する場合に,このプロパティを使用します。ComponentCount プロパティは,コンポーネントリストの項目の数と同じです。コンポーネントのインデックスは 0 から始まるため,この値は,Components の最大のインデックスより 1 大きくなります。

関連項目

以前のバージョン
他の言語