 |
PdfPageCollectionInsert(Int32, PdfCustomPageSize, PdfMargins, PdfPageOrientation) Method |
Inserts a new page at the specified index with the given size, margins, and orientation.
Namespace: SelectPdf.UniversalAssembly: SelectPdf.HtmlToPdf.Universal (in SelectPdf.HtmlToPdf.Universal.dll) Version: 26.4
Syntaxpublic PdfPage Insert(
int index,
PdfCustomPageSize pageSize,
PdfMargins pageMargins,
PdfPageOrientation pageOrientation
)
Public Function Insert (
index As Integer,
pageSize As PdfCustomPageSize,
pageMargins As PdfMargins,
pageOrientation As PdfPageOrientation
) As PdfPage
Parameters
- index Int32
- The zero-based index at which to insert the new page.
- pageSize PdfCustomPageSize
- The size of the new page, in points.
- pageMargins PdfMargins
- The margins to apply to the new page.
- pageOrientation PdfPageOrientation
- The orientation of the new page.
Return Value
PdfPageThe newly created and inserted
PdfPage.
See Also