Inserts a page at a specific position in the document.

Namespace:  C1.Silverlight.Pdf
Assembly:  C1.Silverlight.Pdf (in C1.Silverlight.Pdf.dll)

Syntax

C#
public void Insert(
	int index,
	PdfPage page
)
Visual Basic
Public Sub Insert ( _
	index As Integer, _
	page As PdfPage _
)

Parameters

index
Type: System..::..Int32
Position where the new page will be inserted in the document.
page
Type: C1.Silverlight.Pdf..::..PdfPage
PdfPage to add to the document.

Remarks

Since the PdfPage class has no public constructors, the only way to use this overload is to remove an existing page from the document first, then add that page back into the document.

Each page can appear only once in the document. Trying to add the same page twice will throw an exception.

See Also