LinkedElementCollection<T>.InsertRange 方法

定义

将一系列元素插入到集合中的指定索引处。

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

参数

index
Int32

第一个插入元素的索引。

collection
IEnumerable<T>

要插入的元素。

适用于