# C1.C1Preview.PageColumnDefCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_C1Preview_PageColumnDefCollection" data-uid="C1.C1Preview.PageColumnDefCollection" class="text-break">PageColumnDefCollection Class
</h1>
  <div class="markdown level0 summary"><p>Represents a collection of <a class="xref" href="C1.C1Preview.PageColumnDef.html">PageColumnDef</a> objects.</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.collectionbase">CollectionBase</a></div>
    <div class="level2"><span class="xref">PageColumnDefCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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.ienumerable">IEnumerable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.C1Preview.html">C1.C1Preview</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.PrintDocument.4.6.2.dll</h6>
  <h5 id="C1_C1Preview_PageColumnDefCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PageColumnDefCollection : CollectionBase, IList, ICollection, IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PageColumnDefCollection
    Inherits CollectionBase
    Implements IList, ICollection, 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_C1Preview_PageColumnDefCollection_Item_System_Int32_" data-uid="C1.C1Preview.PageColumnDefCollection.Item(System.Int32)">
          <a class="xref" href="C1.C1Preview.PageColumnDefCollection.Item.html#C1_C1Preview_PageColumnDefCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the element at the specified index.</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_C1Preview_PageColumnDefCollection_Add" data-uid="C1.C1Preview.PageColumnDefCollection.Add">
          <a class="xref" href="C1.C1Preview.PageColumnDefCollection.Add.html#C1_C1Preview_PageColumnDefCollection_Add">Add()</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new <a class="xref" href="C1.C1Preview.PageColumnDef.html">PageColumnDef</a> initialized with the
default <a class="xref" href="C1.C1Preview.PageColumnDef.Width.html#C1_C1Preview_PageColumnDef_Width">Width</a> and <a class="xref" href="C1.C1Preview.PageColumnDef.Spacing.html#C1_C1Preview_PageColumnDef_Spacing">Spacing</a> to the current collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_PageColumnDefCollection_Add_C1_C1Preview_PageColumnDef_" data-uid="C1.C1Preview.PageColumnDefCollection.Add(C1.C1Preview.PageColumnDef)">
          <a class="xref" href="C1.C1Preview.PageColumnDefCollection.Add.html#C1_C1Preview_PageColumnDefCollection_Add_C1_C1Preview_PageColumnDef_">Add(PageColumnDef)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a <a class="xref" href="C1.C1Preview.PageColumnDef.html">PageColumnDef</a> to the current collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_PageColumnDefCollection_Add_C1_C1Preview_Unit_C1_C1Preview_Unit_" data-uid="C1.C1Preview.PageColumnDefCollection.Add(C1.C1Preview.Unit,C1.C1Preview.Unit)">
          <a class="xref" href="C1.C1Preview.PageColumnDefCollection.Add.html#C1_C1Preview_PageColumnDefCollection_Add_C1_C1Preview_Unit_C1_C1Preview_Unit_">Add(Unit, Unit)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new <a class="xref" href="C1.C1Preview.PageColumnDef.html">PageColumnDef</a> initialized with the specified width and spacing to the current collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_PageColumnDefCollection_Compare_C1_C1Preview_PageColumnDefCollection_" data-uid="C1.C1Preview.PageColumnDefCollection.Compare(C1.C1Preview.PageColumnDefCollection)">
          <a class="xref" href="C1.C1Preview.PageColumnDefCollection.Compare.html#C1_C1Preview_PageColumnDefCollection_Compare_C1_C1Preview_PageColumnDefCollection_">Compare(PageColumnDefCollection)</a>
        </td>
        <td class="markdown level1 summary"><p>Compares the current collection to another.
Uses the <a class="xref" href="C1.C1Preview.PageColumnDef.Compare.html#C1_C1Preview_PageColumnDef_Compare_C1_C1Preview_PageColumnDef_">Compare(PageColumnDef)</a> to compare elements
elements at the corresponding positions by their properties' values.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_PageColumnDefCollection_IndexOf_C1_C1Preview_PageColumnDef_" data-uid="C1.C1Preview.PageColumnDefCollection.IndexOf(C1.C1Preview.PageColumnDef)">
          <a class="xref" href="C1.C1Preview.PageColumnDefCollection.IndexOf.html#C1_C1Preview_PageColumnDefCollection_IndexOf_C1_C1Preview_PageColumnDef_">IndexOf(PageColumnDef)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the index of the specified <a class="xref" href="C1.C1Preview.PageColumnDef.html">PageColumnDef</a> in the current collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_PageColumnDefCollection_Insert_System_Int32_C1_C1Preview_PageColumnDef_" data-uid="C1.C1Preview.PageColumnDefCollection.Insert(System.Int32,C1.C1Preview.PageColumnDef)">
          <a class="xref" href="C1.C1Preview.PageColumnDefCollection.Insert.html#C1_C1Preview_PageColumnDefCollection_Insert_System_Int32_C1_C1Preview_PageColumnDef_">Insert(int, PageColumnDef)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a <a class="xref" href="C1.C1Preview.PageColumnDef.html">PageColumnDef</a> into the current collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_C1Preview_PageColumnDefCollection_Remove_C1_C1Preview_PageColumnDef_" data-uid="C1.C1Preview.PageColumnDefCollection.Remove(C1.C1Preview.PageColumnDef)">
          <a class="xref" href="C1.C1Preview.PageColumnDefCollection.Remove.html#C1_C1Preview_PageColumnDefCollection_Remove_C1_C1Preview_PageColumnDef_">Remove(PageColumnDef)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a <a class="xref" href="C1.C1Preview.PageColumnDef.html">PageColumnDef</a> from the current collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
