System.Generics.Collections.TList.InsertRange

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

Delphi

procedure InsertRange(Index: Integer; const Values: array of T; Count: Integer); overload;
procedure InsertRange(Index: Integer; const Values: array of T); overload;
procedure InsertRange(Index: Integer; const Collection: IEnumerable<T>); overload;
procedure InsertRange(Index: Integer; const Collection: TEnumerable<T>); overload;

C++

void __fastcall InsertRange(int Index, const T *Values, const int Values_High, int Count)/* overload */;
void __fastcall InsertRange(int Index, const T *Values, const int Values_High)/* overload */;
void __fastcall InsertRange(int Index, const System::DelphiInterface<System::IEnumerable__1<T> > Collection)/* overload */;
void __fastcall InsertRange(int Index, TEnumerable__1<T>* const Collection)/* overload */;

プロパティ

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

説明

リストにコレクションを挿入します。

InsertRange は、値の配列(Values)をリスト内のインデックス(Index)の位置に挿入します。リストの Count に追加のエントリを加えた数が Capacity より大きい場合、Capacity が増加されます。

Index がリストに対して有効ではない場合、EArgumentOutOfRangeException 例外が発生します。

これは、O(n + m)(n と m は、それぞれリスト内の項目数と Values 内のエントリ数)操作になります。

リストに項目が挿入されると、OnNotify イベントが発生します。

関連項目