Table of Contents

Method Insert

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

Insert(int)

Inserts a new page into the document's page collection at the specified index.

public PdfPage Insert(int index)

Parameters

index int

The zero-based index at which the new page should be inserted.

Returns

PdfPage

The newly created PdfPage.

Remarks

See the Add and insert pages section for additional details.

When index equals Count, this method behaves the same as Add().

Exceptions

ArgumentOutOfRangeException

Thrown when index is less than 0 or greater than Count.