[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.PageCollection.Insert

Insert Method

Insert(int)

Creates a new page and inserts it at a specific position in the document.

Declaration
public Page Insert(int index)
Parameters
Type Name Description
int index

The position where the new page will be inserted.

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.

Insert(int, SizeF)

Creates a new page with the specified size and inserts it at a specific position in the document.

Declaration
public Page Insert(int index, SizeF pageSize)
Parameters
Type Name Description
int index

The position where the new page will be inserted.

SizeF pageSize

The size of the new page, expressed in points.

Returns
Type Description
Page

The newly created page.

Insert(int, PaperKind)

Creates a new page with the specified size and inserts it at a specific position in the document.

Declaration
public Page Insert(int index, PaperKind paperKind)
Parameters
Type Name Description
int index

The position where the new page will be inserted.

PaperKind paperKind

The size of the new page, expressed as a PaperKind.

Returns
Type Description
Page

The newly created page.