System.Generics.Collections.TList.Count

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

Delphi

property Count: Integer read FListHelper.FCount write SetCount;

C++

__property int Count = {read=FListHelper.FCount, write=SetCount, nodefault};

プロパティ

種類 可視性 ソース ユニット
property public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TList

説明

リストの要素数。

Count は、リスト内の実際の要素数を取得または設定します。Count は、常に Capacity 以下になります。

ある操作(Insert など)によって CountCapacity より大きくなる場合、リストが自動的にサイズ変更されて Capacity が増加されます。

Count が減らされると、リストの末尾の Count - Value 項目が削除されます。

関連項目