[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.PageCollection.Add

Add Method

Add()

Creates a new Page and adds it to the end of the document.

Declaration
public Page Add()
Public Function Add() As Page
Returns
Type Description
Page

The newly created page.

Remarks

The size of the new page is determined by the PageSize property of the parent document.

You can also add pages to a GcPdfDocument by calling the NewPage() method.

Add(SizeF)

Creates a new Page with the specified size and adds it to the end of the document.

Declaration
public Page Add(SizeF pageSize)
Public Function Add(pageSize As SizeF) As Page
Parameters
Type Name Description
SizeF pageSize

The size of the new page, in points.

Returns
Type Description
Page

The newly created page.

Remarks

You can also add pages to a GcPdfDocument by calling the NewPage() method.

Add(PaperKind)

Creates a new Page of the specified PaperKind and adds it to the end of the document.

Declaration
public Page Add(PaperKind paperKind)
Public Function Add(paperKind As PaperKind) As Page
Parameters
Type Name Description
PaperKind paperKind

The PaperKind determining the size of the new page.

Returns
Type Description
Page

The newly created page.

Remarks

You can also add pages to a GcPdfDocument by calling the NewPage() method.