ComponentOne PDF for .NET
C1.C1Pdf Namespace / PdfPageCollection Class / AddRange Method / AddRange(ICollection) Method
Collection of PdfPage objects to add to the document.

In This Topic
    AddRange(ICollection) Method
    In This Topic
    Adds the elements of an System.Collections.ICollection to the end of the document.
    Syntax
    'Declaration
     
    
    Public Overloads Sub AddRange( _
       ByVal c As ICollection _
    ) 
    public void AddRange( 
       ICollection c
    )

    Parameters

    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