# C1.Pdf.PdfPageCollection.AddRange

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Pdf_PdfPageCollection_AddRange_" data-uid="C1.Pdf.PdfPageCollection.AddRange*">AddRange Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Pdf_PdfPageCollection_AddRange_" data-uid="C1.Pdf.PdfPageCollection.AddRange*"></a>
<h4 id="C1_Pdf_PdfPageCollection_AddRange_System_Collections_ICollection_" data-uid="C1.Pdf.PdfPageCollection.AddRange(System.Collections.ICollection)">AddRange(ICollection)</h4>
<div class="markdown level1 summary"><p>Adds the elements of an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a> to the end of the document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void AddRange(ICollection c)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub AddRange(c As ICollection)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></td>
      <td><span class="parametername">c</span></td>
      <td><p>Collection of <a class="xref" href="C1.Pdf.PdfPage.html">PdfPage</a> objects to add to the document.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Pdf_PdfPageCollection_AddRange_System_Collections_ICollection__remarks">Remarks</h5>
<div class="markdown level1 remarks"><pre><code>&lt;p&gt;Since the &lt;xref href=&quot;C1.Pdf.PdfPage&quot; data-throw-if-not-resolved=&quot;false&quot;&gt;&lt;/xref&gt; class has no public constructors, the only 
</code></pre>
<p>way to use this overload is to remove existing pages from the document
first, then add them back into the document.</p>
<p>Each page can appear only once in the document. Trying to add the same
page twice will throw an exception.</p>
</div>
</div>
