System.Rtti.TRttiArrayType.TotalElementCount

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

Delphi

property TotalElementCount: Integer read GetTotalElementCount;

C++

__property int TotalElementCount = {read=GetTotalElementCount, nodefault};

プロパティ

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

説明

配列が格納可能な要素の合計数を指定します。

TotalElementCount プロパティを使用すると、その静的配列に格納可能な要素の合計数を取得できます。 動的配列とは異なり、静的配列の要素数は型の定義に基づいて要素数を取得できます。

TotalElementCount は、配列のすべての次元から要素の合計数を返します。 その配列要素が array[0..1, 0..2] と宣言すると、TotalElementCount の値は 6 になります。なぜなら要素が X 座標に 2 つ、Y 座標に 3 つあるためです。

関連項目