TreeView for WinForms | ComponentOne
C1.Framework Namespace / ElementList Class / InsertRange Method
The zero-based index at which the new elements should be inserted.
The System.Collections.ICollection whose elements should be inserted into the System.Collections.ArrayList. The collection itself cannot be a null reference (Nothing in Visual Basic), but it can contain elements that are a null reference (Nothing in Visual Basic).

In This Topic
    InsertRange Method (ElementList)
    In This Topic
    Inserts the elements of a collection into the System.Collections.ArrayList at the specified index.
    Syntax
    'Declaration
     
    
    Public Overrides Sub InsertRange( _
       ByVal index As Integer, _
       ByVal c As ICollection _
    ) 
    public override void InsertRange( 
       int index,
       ICollection c
    )

    Parameters

    index
    The zero-based index at which the new elements should be inserted.
    c
    The System.Collections.ICollection whose elements should be inserted into the System.Collections.ArrayList. The collection itself cannot be a null reference (Nothing in Visual Basic), but it can contain elements that are a null reference (Nothing in Visual Basic).
    Exceptions
    ExceptionDescription
    c is a null reference (Nothing in Visual Basic).
    index is less than zero. -or- index is greater than System.Collections.ArrayList.Count.
    The System.Collections.ArrayList is read-only. -or- The System.Collections.ArrayList has a fixed size.
    See Also