ComponentOne PDF for .NET
C1.C1Pdf Namespace / PdfPageCollection Class / Add Method / Add(PaperKind) Method
The size of the new page, expressed as a System.Drawing.Printing.PaperKind.

In This Topic
    Add(PaperKind) Method
    In This Topic
    Creates a new PdfPage with the specified size and adds it to the end of the document.
    Syntax
    'Declaration
     
    
    Public Overloads Function Add( _
       ByVal paperKind As PaperKind _
    ) As Integer
    public int Add( 
       PaperKind paperKind
    )

    Parameters

    paperKind
    The size of the new page, expressed as a System.Drawing.Printing.PaperKind.

    Return Value

    The index of the new page.
    Remarks

    The new page becomes current after it is added to the document (see the CurrentPage property).

    You can also add pages to a C1PdfDocument by calling the C1PdfDocumentBase.NewPage method.

    See Also