ComponentOne PDF for WPF and Silverlight
InsertRange(Int32,ICollection) Method

C1.Silverlight.Pdf.5 Assembly > C1.Silverlight.Pdf Namespace > PdfPageCollection Class > InsertRange Method : InsertRange(Int32,ICollection) Method
Position where the new pages will be inserted.
Collection of PdfPage objects to add to the document.
Inserts the elements of an System.Collections.ICollection at a specified position in the document.
Syntax
'Declaration
 
Public Overloads Sub InsertRange( _
   ByVal index As Integer, _
   ByVal c As ICollection _
) 
public void InsertRange( 
   int index,
   ICollection c
)

Parameters

index
Position where the new pages will be inserted.
c
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.

See Also

Reference

PdfPageCollection Class
PdfPageCollection Members
Overload List