System.Generics.Collections.TList.Add

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

Delphi

function Add(const Value: T): Integer; inline;

C++

int __fastcall Add(const T Value);

プロパティ

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


説明

リストの最後に項目を追加します。

Add は、指定された項目をリストの末尾に追加します。 これは、nil を追加できます。 必要な場合、リストの容量(Capacity)が増加されます。 これは、O(1) 操作になります。

リストにエントリが追加されると、OnNotify イベントが発生します。

Add は、TList における新しい項目の位置を返します。

関連項目