![Collapse image](collapse_all.gif)
![Expand Image](expand_all.gif)
![CollapseAll image](collall.gif)
![ExpandAll image](expall.gif)
![DropDown image](drpdown.gif)
![DropDownHover image](drpdown_orange.gif)
![Copy image](copycode.gif)
![CopyHover image](copycodeHighlight.gif)
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Inserts a collection of items at the given index in the Deque. All items at indexes
equal to or greater than index increase their indices in the Deque
by the number of items inserted.
Namespace: Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
C# |
---|
public void InsertRange( int index, IEnumerable<T> collection ) |
Visual Basic (Declaration) |
---|
Public Sub InsertRange ( _ index As Integer, _ collection As IEnumerable(Of T) _ ) |
Visual C++ |
---|
public: void InsertRange ( int index, IEnumerable<T>^ collection ) |
Parameters
- index
- Int32
The index in the Deque to insert the collection at. After the insertion, the first item of the inserted collection is located at this index. The front item in the Deque has index 0.
- collection
- IEnumerable<(Of <T>)>
The collection of items to insert at the given index.
Remarks
The amount of time to insert a collection in the Deque is proportional
to the distance of index from the closest end of the Deque, plus the number of items
inserted (M):
O(M + Min(index, Count - index)).
Exceptions
Exception | Condition |
---|---|
System..::ArgumentOutOfRangeException | index is less than zero or greater than Count. |
See Also
Deque<(Of <T>)> Class
Wintellect.PowerCollections Namespace