[]
Inserts a page at a specific position in the document.
public void Insert(int index, PdfPage page)
Public Sub Insert(index As Integer, page As PdfPage)
| Type | Name | Description |
|---|---|---|
| int | index | Position where the new page will be inserted in the document. |
| PdfPage | page | PdfPage to add to the document. |
<p>Since the <xref href="C1.Pdf.PdfPage" data-throw-if-not-resolved="false"></xref> 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.
Creates a new page and inserts it at a specific position in the document.
public void Insert(int index)
Public Sub Insert(index As Integer)
| Type | Name | Description |
|---|---|---|
| int | index | The position where the new page will be inserted. |
<p>The size of the new page is determined by the <xref href="C1.Pdf.C1PdfDocument.PageSize" data-throw-if-not-resolved="false"></xref> property
of the parent document.
The new page becomes current after it is added to the document (see the CurrentPage property).
Creates a new page with the specified size and inserts it at a specific position in the document.
public void Insert(int index, SizeF pageSize)
Public Sub Insert(index As Integer, pageSize As SizeF)
| 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. |
Creates a new page with the specified size and inserts it at a specific position in the document.
public void Insert(int index, PaperKind paperKind)
Public Sub Insert(index As Integer, paperKind As PaperKind)
| 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 GrapeCity.Documents.Common.PaperKind. |