# C1.Win.FlexGrid.CellRangeCollection

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_FlexGrid_CellRangeCollection" data-uid="C1.Win.FlexGrid.CellRangeCollection" class="text-break">CellRangeCollection Class
</h1>
  <div class="markdown level0 summary"><p>Collection of <a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</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"><span class="xref">CellRangeCollection</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <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.Win.FlexGrid.html">C1.Win.FlexGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.FlexGrid.10.dll</h6>
  <h5 id="C1_Win_FlexGrid_CellRangeCollection_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class CellRangeCollection : IEnumerable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class CellRangeCollection
    Implements IEnumerable</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Win_FlexGrid_CellRangeCollection__ctor_C1_Win_FlexGrid_C1FlexGrid_" data-uid="C1.Win.FlexGrid.CellRangeCollection.#ctor(C1.Win.FlexGrid.C1FlexGrid)">
          <a class="xref" href="C1.Win.FlexGrid.CellRangeCollection.-ctor.html#C1_Win_FlexGrid_CellRangeCollection__ctor_C1_Win_FlexGrid_C1FlexGrid_">CellRangeCollection(C1FlexGrid)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.Win.FlexGrid.CellRangeCollection.html">CellRangeCollection</a>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <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_Win_FlexGrid_CellRangeCollection_Count" data-uid="C1.Win.FlexGrid.CellRangeCollection.Count">
          <a class="xref" href="C1.Win.FlexGrid.CellRangeCollection.Count.html#C1_Win_FlexGrid_CellRangeCollection_Count">Count</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of <a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a> objects in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellRangeCollection_Item_System_Int32_" data-uid="C1.Win.FlexGrid.CellRangeCollection.Item(System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.CellRangeCollection.Item.html#C1_Win_FlexGrid_CellRangeCollection_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a> object at a 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_Win_FlexGrid_CellRangeCollection_Add_C1_Win_FlexGrid_CellRange_" data-uid="C1.Win.FlexGrid.CellRangeCollection.Add(C1.Win.FlexGrid.CellRange)">
          <a class="xref" href="C1.Win.FlexGrid.CellRangeCollection.Add.html#C1_Win_FlexGrid_CellRangeCollection_Add_C1_Win_FlexGrid_CellRange_">Add(CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new <a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a> object to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellRangeCollection_Add_C1_Win_FlexGrid_CellRange_System_Boolean_" data-uid="C1.Win.FlexGrid.CellRangeCollection.Add(C1.Win.FlexGrid.CellRange,System.Boolean)">
          <a class="xref" href="C1.Win.FlexGrid.CellRangeCollection.Add.html#C1_Win_FlexGrid_CellRangeCollection_Add_C1_Win_FlexGrid_CellRange_System_Boolean_">Add(CellRange, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new <a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a> object to the collection, optionally
removing other overlapping ranges from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellRangeCollection_Add_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Win.FlexGrid.CellRangeCollection.Add(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.CellRangeCollection.Add.html#C1_Win_FlexGrid_CellRangeCollection_Add_System_Int32_System_Int32_System_Int32_System_Int32_">Add(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new <a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a> object to the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellRangeCollection_Add_System_Int32_System_Int32_System_Int32_System_Int32_System_Boolean_" data-uid="C1.Win.FlexGrid.CellRangeCollection.Add(System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean)">
          <a class="xref" href="C1.Win.FlexGrid.CellRangeCollection.Add.html#C1_Win_FlexGrid_CellRangeCollection_Add_System_Int32_System_Int32_System_Int32_System_Int32_System_Boolean_">Add(int, int, int, int, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Adds a new <a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a> object to the collection, optionally
removing other overlapping ranges from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellRangeCollection_Clear" data-uid="C1.Win.FlexGrid.CellRangeCollection.Clear">
          <a class="xref" href="C1.Win.FlexGrid.CellRangeCollection.Clear.html#C1_Win_FlexGrid_CellRangeCollection_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Removes all objects from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellRangeCollection_Contains_C1_Win_FlexGrid_CellRange_" data-uid="C1.Win.FlexGrid.CellRangeCollection.Contains(C1.Win.FlexGrid.CellRange)">
          <a class="xref" href="C1.Win.FlexGrid.CellRangeCollection.Contains.html#C1_Win_FlexGrid_CellRangeCollection_Contains_C1_Win_FlexGrid_CellRange_">Contains(CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether a <a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a> object is a member of the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellRangeCollection_IndexOf_C1_Win_FlexGrid_CellRange_" data-uid="C1.Win.FlexGrid.CellRangeCollection.IndexOf(C1.Win.FlexGrid.CellRange)">
          <a class="xref" href="C1.Win.FlexGrid.CellRangeCollection.IndexOf.html#C1_Win_FlexGrid_CellRangeCollection_IndexOf_C1_Win_FlexGrid_CellRange_">IndexOf(CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of a <a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a> object in the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellRangeCollection_IndexOf_System_Int32_System_Int32_" data-uid="C1.Win.FlexGrid.CellRangeCollection.IndexOf(System.Int32,System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.CellRangeCollection.IndexOf.html#C1_Win_FlexGrid_CellRangeCollection_IndexOf_System_Int32_System_Int32_">IndexOf(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the first <a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a> object in the collection that contains the specified row and column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellRangeCollection_Insert_System_Int32_C1_Win_FlexGrid_CellRange_" data-uid="C1.Win.FlexGrid.CellRangeCollection.Insert(System.Int32,C1.Win.FlexGrid.CellRange)">
          <a class="xref" href="C1.Win.FlexGrid.CellRangeCollection.Insert.html#C1_Win_FlexGrid_CellRangeCollection_Insert_System_Int32_C1_Win_FlexGrid_CellRange_">Insert(int, CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Inserts a <a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a> object in the collection at a specified index.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellRangeCollection_Remove_C1_Win_FlexGrid_CellRange_" data-uid="C1.Win.FlexGrid.CellRangeCollection.Remove(C1.Win.FlexGrid.CellRange)">
          <a class="xref" href="C1.Win.FlexGrid.CellRangeCollection.Remove.html#C1_Win_FlexGrid_CellRangeCollection_Remove_C1_Win_FlexGrid_CellRange_">Remove(CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Removes a <a class="xref" href="C1.Win.FlexGrid.CellRange.html">CellRange</a> object from the collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_CellRangeCollection_RemoveAt_System_Int32_" data-uid="C1.Win.FlexGrid.CellRangeCollection.RemoveAt(System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.CellRangeCollection.RemoveAt.html#C1_Win_FlexGrid_CellRangeCollection_RemoveAt_System_Int32_">RemoveAt(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Removed the object at a specified index from the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
