System.Generics.Collections.TList.DeleteRange
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 個のエントリを削除します。
AIndex と ACount がリスト内の無効な範囲を示している場合、EArgumentOutOfRangeException 例外が発生します。
これは、O(ACount) 操作になります。
リストからエントリが削除されると、OnNotify イベントが発生します。