System.Generics.Collections.TList.AddRange
Delphi
procedure AddRange(const Values: array of T); overload;
procedure AddRange(const Collection: IEnumerable<T>); overload; inline;
procedure AddRange(const Collection: TEnumerable<T>); overload; inline;
C++
void __fastcall AddRange(const T *Values, const System::NativeInt Values_High)/* overload */;
void __fastcall AddRange(const System::DelphiInterface<System::IEnumerable__1<T> > Collection)/* overload */;
void __fastcall AddRange(TEnumerable__1<T>* const Collection)/* overload */;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Generics.Collections.pas System.Generics.Collections.hpp |
System.Generics.Collections | TList |
Description
Add a collection to the end of a list.
AddRange adds a collection of items to the end of a list. The capacity, Capacity, of the list is increased if necessary. This is an O(n) operation, where n is the number of elements in the added collection.
An OnNotify event occurs indicating that entries were added to the list.
See Also
Code Examples