C1.Xaml.Pdf Namespace > PdfPageCollection Class > InsertRange Method : InsertRange(Int32,ICollection) Method |
'Declaration
Public Overloads Sub InsertRange( _ ByVal index As Integer, _ ByVal c As ICollection _ )
'Usage
Dim instance As PdfPageCollection Dim index As Integer Dim c As ICollection instance.InsertRange(index, c)
public void InsertRange( int index, ICollection c )
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.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2