Inserts the elements of an ICollection at a specified position
in the document.
Namespace:
C1.Silverlight.PdfAssembly: C1.Silverlight.Pdf (in C1.Silverlight.Pdf.dll)
Syntax
C# |
---|
public void InsertRange( int index, ICollection c ) |
Visual Basic |
---|
Public Sub InsertRange ( _ index As Integer, _ c As ICollection _ ) |
Parameters
- index
- Type: System..::..Int32
Position where the new pages will be inserted.
- c
- Type: System.Collections..::..ICollection
Collection of PdfPage objects to add to the document.
Remarks
Since the PdfPage 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.