# C1.Web.Mvc.Grid.CellRange

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Mvc_Grid_CellRange" data-uid="C1.Web.Mvc.Grid.CellRange" class="text-break">CellRange Class
</h1>
  <div class="markdown level0 summary"><p>Represents a rectangular group of cells defined by two row indices and two column indices.</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">CellRange</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Mvc.Grid.html">C1.Web.Mvc.Grid</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Mvc.dll</h6>
  <h5 id="C1_Web_Mvc_Grid_CellRange_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class CellRange</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class CellRange</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_Web_Mvc_Grid_CellRange__ctor_System_Int32_System_Int32_" data-uid="C1.Web.Mvc.Grid.CellRange.#ctor(System.Int32,System.Int32)">
          <a class="xref" href="C1.Web.Mvc.Grid.CellRange.-ctor.html#C1_Web_Mvc_Grid_CellRange__ctor_System_Int32_System_Int32_">CellRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.Grid.CellRange.html">CellRange</a> instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Grid_CellRange__ctor_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.Web.Mvc.Grid.CellRange.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="C1.Web.Mvc.Grid.CellRange.-ctor.html#C1_Web_Mvc_Grid_CellRange__ctor_System_Int32_System_Int32_System_Int32_System_Int32_">CellRange(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates one <a class="xref" href="C1.Web.Mvc.Grid.CellRange.html">CellRange</a> instance.</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_Web_Mvc_Grid_CellRange_Col" data-uid="C1.Web.Mvc.Grid.CellRange.Col">
          <a class="xref" href="C1.Web.Mvc.Grid.CellRange.Col.html#C1_Web_Mvc_Grid_CellRange_Col">Col</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the index of the first column in this range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Grid_CellRange_Col2" data-uid="C1.Web.Mvc.Grid.CellRange.Col2">
          <a class="xref" href="C1.Web.Mvc.Grid.CellRange.Col2.html#C1_Web_Mvc_Grid_CellRange_Col2">Col2</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the index of the second column in this range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Grid_CellRange_Row" data-uid="C1.Web.Mvc.Grid.CellRange.Row">
          <a class="xref" href="C1.Web.Mvc.Grid.CellRange.Row.html#C1_Web_Mvc_Grid_CellRange_Row">Row</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the index of the first row in this range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Grid_CellRange_Row2" data-uid="C1.Web.Mvc.Grid.CellRange.Row2">
          <a class="xref" href="C1.Web.Mvc.Grid.CellRange.Row2.html#C1_Web_Mvc_Grid_CellRange_Row2">Row2</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the index of the second row in this range.</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_Web_Mvc_Grid_CellRange_Clone" data-uid="C1.Web.Mvc.Grid.CellRange.Clone">
          <a class="xref" href="C1.Web.Mvc.Grid.CellRange.Clone.html#C1_Web_Mvc_Grid_CellRange_Clone">Clone()</a>
        </td>
        <td class="markdown level1 summary"><p>Clones a copy of current <a class="xref" href="C1.Web.Mvc.Grid.CellRange.html">CellRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Grid_CellRange_Equals_System_Object_" data-uid="C1.Web.Mvc.Grid.CellRange.Equals(System.Object)">
          <a class="xref" href="C1.Web.Mvc.Grid.CellRange.Equals.html#C1_Web_Mvc_Grid_CellRange_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified object is equal to the current <a class="xref" href="C1.Web.Mvc.Grid.CellRange.html">CellRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Grid_CellRange_GetHashCode" data-uid="C1.Web.Mvc.Grid.CellRange.GetHashCode">
          <a class="xref" href="C1.Web.Mvc.Grid.CellRange.GetHashCode.html#C1_Web_Mvc_Grid_CellRange_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Serves as a hash function for <a class="xref" href="C1.Web.Mvc.Grid.CellRange.html">CellRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Mvc_Grid_CellRange_IsValid" data-uid="C1.Web.Mvc.Grid.CellRange.IsValid">
          <a class="xref" href="C1.Web.Mvc.Grid.CellRange.IsValid.html#C1_Web_Mvc_Grid_CellRange_IsValid">IsValid()</a>
        </td>
        <td class="markdown level1 summary"><p>Checks whether this range contains valid row and column indices (&gt; -1).</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
