Compartilhar via


ObservableList<T>.InsertRange Method

Definition

Overloads

InsertRange(Int32, IEnumerable<T>)
InsertRange(Int32, IList<T>)

InsertRange(Int32, IEnumerable<T>)

Inserts the elements of a collection into the List<T> at the specified index.

public void InsertRange (int index, System.Collections.Generic.IEnumerable<T> collection);
member this.InsertRange : int * seq<'T> -> unit
Public Sub InsertRange (index As Integer, collection As IEnumerable(Of T))

Parameters

index
Int32
collection
IEnumerable<T>

Applies to

InsertRange(Int32, IList<T>)

Inserts the elements of a collection into the List<T> at the specified index.

public void InsertRange (int index, System.Collections.Generic.IList<T> collection);
member this.InsertRange : int * System.Collections.Generic.IList<'T> -> unit
Public Sub InsertRange (index As Integer, collection As IList(Of T))

Parameters

index
Int32
collection
IList<T>

Applies to