ComponentOne PDF for .NET
C1.C1Pdf Namespace / PdfPageCollection Class / Insert Method / Insert(Int32,PdfPage) Method
Position where the new page will be inserted in the document.
PdfPage to add to the document.

In This Topic
    Insert(Int32,PdfPage) Method
    In This Topic
    Inserts a page at a specific position in the document.
    Syntax
    'Declaration
     
    
    Public Overloads Shadows Sub Insert( _
       ByVal index As Integer, _
       ByVal page As PdfPage _
    ) 
    public new void Insert( 
       int index,
       PdfPage page
    )

    Parameters

    index
    Position where the new page will be inserted in the document.
    page
    PdfPage to add to the document.
    Remarks

    Since the PdfPage class has no public constructors, the only way to use this overload is to remove an existing page from the document first, then add that page 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