ComponentOne PDF for .NET
C1.C1Pdf Namespace / PdfPageCollection Class / Add Method / Add(PdfPage) Method
PdfPage to add to the document.

In This Topic
    Add(PdfPage) Method
    In This Topic
    Adds a page to the document.
    Syntax
    'Declaration
     
    
    Public Overloads Shadows Function Add( _
       ByVal page As PdfPage _
    ) As Integer
    public new int Add( 
       PdfPage page
    )

    Parameters

    page
    PdfPage to add to the document.

    Return Value

    The index of the new page in 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