System.Generics.Collections.TList.DeleteRange

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

Delphi

procedure DeleteRange(AIndex, ACount: Integer); inline;

C++

void __fastcall DeleteRange(int AIndex, int ACount);

プロパティ

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

説明

インデックスが示す位置のいくつかのエントリを削除します。

DeleteRange は、指定されたインデックス(AIndex)が示すリスト内の位置から ACount 個のエントリを削除します。

AIndexACount がリスト内の無効な範囲を示している場合、EArgumentOutOfRangeException 例外が発生します。

これは、O(ACount) 操作になります。

リストからエントリが削除されると、OnNotify イベントが発生します。

関連項目