ComponentOne PDF for .NET
C1.C1Pdf Namespace / PdfPageCollection Class / InsertRange Method / InsertRange(Int32,ICollection) Method
Position where the new pages will be inserted.
Collection of PdfPage objects to add to the document.

In This Topic
    InsertRange(Int32,ICollection) Method
    In This Topic
    Inserts the elements of an System.Collections.ICollection at a specified position in the document.
    Syntax
    'Declaration
     
    
    Public Overloads Sub InsertRange( _
       ByVal index As Integer, _
       ByVal c As ICollection _
    ) 
    public void InsertRange( 
       int index,
       ICollection c
    )

    Parameters

    index
    Position where the new pages will be inserted.
    c
    Collection of PdfPage objects to add to the document.
    Remarks

    Since the PdfPage class has no public constructors, the only way to use this overload is to remove existing pages from the document first, then add them back into the document.

    Each page can appear only once in the document. Trying to add the same page twice will throw an exception.

    See Also