Creates a new page and inserts it at the specified index.

Namespace: Spire.Pdf.Widget
Assembly: Spire.Pdf (in Spire.Pdf.dll) Version: 6.2.6.0 (6.2.6.2020)

Syntax

            
 C#  Visual Basic  Visual C++  F# 
public PdfPageBase Insert(
	int index,
	SizeF size,
	PdfMargins margins,
	PdfPageRotateAngle rotation,
	PdfPageOrientation orientation,
	bool existsPage
)
Public Function Insert ( 
	index As Integer,
	size As SizeF,
	margins As PdfMargins,
	rotation As PdfPageRotateAngle,
	orientation As PdfPageOrientation,
	existsPage As Boolean
) As PdfPageBase
public:
PdfPageBase^ Insert(
	int index, 
	SizeF size, 
	PdfMargins^ margins, 
	PdfPageRotateAngle rotation, 
	PdfPageOrientation orientation, 
	bool existsPage
)
member Insert : 
        index : int * 
        size : SizeF * 
        margins : PdfMargins * 
        rotation : PdfPageRotateAngle * 
        orientation : PdfPageOrientation * 
        existsPage : bool -> PdfPageBase 

Parameters

index
Int32
The index.
size
SizeF
The size of the page.
margins
PdfMargins
The margins of the page.
rotation
PdfPageRotateAngle
The rotation of the new page.
orientation
PdfPageOrientation
The orientation of the new page.
existsPage
Boolean

Return Value

PdfPageBase
The created page.

See Also