# C1.Pdf.PdfPageCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Pdf_PdfPageCollection" data-uid="C1.Pdf.PdfPageCollection" class="text-break">PdfPageCollection Class
</h1>
  <div class="markdown level0 summary"><p>A collection of <a class="xref" href="C1.Pdf.PdfPage.html">PdfPage</a> objects that make up the document.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.list-1">List</a>&lt;<a class="xref" href="C1.Pdf.PdfPage.html">PdfPage</a>&gt;</div>
    <div class="level2"><span class="xref">PdfPageCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ilist-1">IList</a>&lt;<a class="xref" href="C1.Pdf.PdfPage.html">PdfPage</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.icollection-1">ICollection</a>&lt;<a class="xref" href="C1.Pdf.PdfPage.html">PdfPage</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="C1.Pdf.PdfPage.html">PdfPage</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="C1.Pdf.PdfPage.html">PdfPage</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="C1.Pdf.PdfPage.html">PdfPage</a>&gt;</div>
    <div><span class="xref">IEnumerable</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Pdf.html">C1.Pdf</a></h6>
  <h6><strong>Assembly</strong>: C1.Pdf.dll</h6>
  <h5 id="C1_Pdf_PdfPageCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PdfPageCollection : List&lt;PdfPage&gt;, IList&lt;PdfPage&gt;, ICollection&lt;PdfPage&gt;, IList, ICollection, IReadOnlyList&lt;PdfPage&gt;, IReadOnlyCollection&lt;PdfPage&gt;, IEnumerable&lt;PdfPage&gt;, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PdfPageCollection
    Inherits List(Of PdfPage)
    Implements IList(Of PdfPage), ICollection(Of PdfPage), IList, ICollection, IReadOnlyList(Of PdfPage), IReadOnlyCollection(Of PdfPage), IEnumerable(Of PdfPage), IEnumerable</code></pre>
  </div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Pdf_PdfPageCollection_Item_System_Int32_" data-uid="C1.Pdf.PdfPageCollection.Item(System.Int32)">
          <a class="xref" href="C1.Pdf.PdfPageCollection.Item.html#C1_Pdf_PdfPageCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Pdf.PdfPage.html">PdfPage</a> at a specific position in the document.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Pdf_PdfPageCollection_Add" data-uid="C1.Pdf.PdfPageCollection.Add">
          <a class="xref" href="C1.Pdf.PdfPageCollection.Add.html#C1_Pdf_PdfPageCollection_Add">Add()</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.Pdf.PdfPage.html">PdfPage</a> and adds it to the end of the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Pdf_PdfPageCollection_Add_C1_Pdf_PdfPage_" data-uid="C1.Pdf.PdfPageCollection.Add(C1.Pdf.PdfPage)">
          <a class="xref" href="C1.Pdf.PdfPageCollection.Add.html#C1_Pdf_PdfPageCollection_Add_C1_Pdf_PdfPage_">Add(PdfPage)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a page to the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Pdf_PdfPageCollection_Add_GrapeCity_Documents_Common_PaperKind_" data-uid="C1.Pdf.PdfPageCollection.Add(GrapeCity.Documents.Common.PaperKind)">
          <a class="xref" href="C1.Pdf.PdfPageCollection.Add.html#C1_Pdf_PdfPageCollection_Add_GrapeCity_Documents_Common_PaperKind_">Add(PaperKind)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.Pdf.PdfPage.html">PdfPage</a> with the specified size and adds it to
the end of the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Pdf_PdfPageCollection_Add_System_Drawing_SizeF_" data-uid="C1.Pdf.PdfPageCollection.Add(System.Drawing.SizeF)">
          <a class="xref" href="C1.Pdf.PdfPageCollection.Add.html#C1_Pdf_PdfPageCollection_Add_System_Drawing_SizeF_">Add(SizeF)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.Pdf.PdfPage.html">PdfPage</a> with the specified size and adds it to
the end of the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Pdf_PdfPageCollection_AddRange_System_Collections_ICollection_" data-uid="C1.Pdf.PdfPageCollection.AddRange(System.Collections.ICollection)">
          <a class="xref" href="C1.Pdf.PdfPageCollection.AddRange.html#C1_Pdf_PdfPageCollection_AddRange_System_Collections_ICollection_">AddRange(ICollection)</a>
        </td>
        <td 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>
</td>
      </tr>
      <tr>
        <td id="C1_Pdf_PdfPageCollection_Clear" data-uid="C1.Pdf.PdfPageCollection.Clear">
          <a class="xref" href="C1.Pdf.PdfPageCollection.Clear.html#C1_Pdf_PdfPageCollection_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all pages from the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Pdf_PdfPageCollection_Insert_System_Int32_" data-uid="C1.Pdf.PdfPageCollection.Insert(System.Int32)">
          <a class="xref" href="C1.Pdf.PdfPageCollection.Insert.html#C1_Pdf_PdfPageCollection_Insert_System_Int32_">Insert(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new page and inserts it at a specific position in the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Pdf_PdfPageCollection_Insert_System_Int32_C1_Pdf_PdfPage_" data-uid="C1.Pdf.PdfPageCollection.Insert(System.Int32,C1.Pdf.PdfPage)">
          <a class="xref" href="C1.Pdf.PdfPageCollection.Insert.html#C1_Pdf_PdfPageCollection_Insert_System_Int32_C1_Pdf_PdfPage_">Insert(int, PdfPage)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a page at a specific position in the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Pdf_PdfPageCollection_Insert_System_Int32_GrapeCity_Documents_Common_PaperKind_" data-uid="C1.Pdf.PdfPageCollection.Insert(System.Int32,GrapeCity.Documents.Common.PaperKind)">
          <a class="xref" href="C1.Pdf.PdfPageCollection.Insert.html#C1_Pdf_PdfPageCollection_Insert_System_Int32_GrapeCity_Documents_Common_PaperKind_">Insert(int, PaperKind)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new page with the specified size and inserts it at a specific
position in the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Pdf_PdfPageCollection_Insert_System_Int32_System_Drawing_SizeF_" data-uid="C1.Pdf.PdfPageCollection.Insert(System.Int32,System.Drawing.SizeF)">
          <a class="xref" href="C1.Pdf.PdfPageCollection.Insert.html#C1_Pdf_PdfPageCollection_Insert_System_Int32_System_Drawing_SizeF_">Insert(int, SizeF)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new page with the specified size and inserts it at a specific
position in the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Pdf_PdfPageCollection_InsertRange_System_Int32_System_Collections_ICollection_" data-uid="C1.Pdf.PdfPageCollection.InsertRange(System.Int32,System.Collections.ICollection)">
          <a class="xref" href="C1.Pdf.PdfPageCollection.InsertRange.html#C1_Pdf_PdfPageCollection_InsertRange_System_Int32_System_Collections_ICollection_">InsertRange(int, ICollection)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts the elements of an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.icollection">ICollection</a> at a specified position
in the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Pdf_PdfPageCollection_Remove_C1_Pdf_PdfPage_" data-uid="C1.Pdf.PdfPageCollection.Remove(C1.Pdf.PdfPage)">
          <a class="xref" href="C1.Pdf.PdfPageCollection.Remove.html#C1_Pdf_PdfPageCollection_Remove_C1_Pdf_PdfPage_">Remove(PdfPage)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a page from a document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Pdf_PdfPageCollection_RemoveAt_System_Int32_" data-uid="C1.Pdf.PdfPageCollection.RemoveAt(System.Int32)">
          <a class="xref" href="C1.Pdf.PdfPageCollection.RemoveAt.html#C1_Pdf_PdfPageCollection_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a page at a specific position from the document.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Pdf_PdfPageCollection_RemoveRange_System_Int32_System_Int32_" data-uid="C1.Pdf.PdfPageCollection.RemoveRange(System.Int32,System.Int32)">
          <a class="xref" href="C1.Pdf.PdfPageCollection.RemoveRange.html#C1_Pdf_PdfPageCollection_RemoveRange_System_Int32_System_Int32_">RemoveRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a range of pages from the document.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
