System.Generics.Collections.TList.DeleteRange

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

void __fastcall DeleteRange(int AIndex, int ACount);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.Generics.Collections.pas
System.Generics.Collections.hpp
System.Generics.Collections TList

Description

Remove several entries at index.

DeleteRange removes ACount list entries at the given index AIndex.

If Index and ACount describe an invalid range for the list, an EArgumentOutOfRangeException exception is raised.

This is an O(ACount) operation.

An OnNotify event occurs indicating that entries were removed from the list.

See Also

Code Examples