[]
        
(Showing Draft Content)

C1.Pdf.PdfPageCollection.InsertRange

InsertRange Method

InsertRange(int, ICollection)

Inserts the elements of an ICollection at a specified position in the document.

Declaration
public void InsertRange(int index, ICollection c)
Parameters
Type Name Description
int index

Position where the new pages will be inserted.

ICollection c

Collection of PdfPage objects to add to the document.

Remarks
<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 existing pages from the document first, then add them back into the document.

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