IList<T>.ExtractRange Method

Overloads

ExtractRange(Integer, Integer)

Removes a specified number of items at the specified index without triggering lifetime management for objects.

ExtractRange(Integer, Integer)

Removes a specified number of items at the specified index without triggering lifetime management for objects.

Delphi
function ExtractRange(index: Integer; count: Integer): TArray<T>

Parameters

index
Integer

The zero-based index of the item to remove.

count
Integer

The number of items to remove.

Returns

TArray<T>

The elements that were removed from the list.

Exceptions

index is not a valid index in the list.

count exceeds the valid range in the list.