ComponentOne PDF for WPF and Silverlight
Add(PaperKind) Method

C1.WPF.Pdf.4 Assembly > C1.WPF.Pdf Namespace > PdfPageCollection Class > Add Method : Add(PaperKind) Method
The size of the new page, expressed as a PaperKind.
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 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

Reference

PdfPageCollection Class
PdfPageCollection Members
Overload List