# C1.WPF.Grid.GridCellRange

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Grid_GridCellRange" data-uid="C1.WPF.Grid.GridCellRange" class="text-break">GridCellRange Class
</h1>
  <div class="markdown level0 summary"><p>Defines a cell range from (row1,col1) to (row2,col2).</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">GridCellRange</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Grid.html">C1.WPF.Grid</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Grid.dll</h6>
  <h5 id="C1_WPF_Grid_GridCellRange_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class GridCellRange</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class GridCellRange</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_WPF_Grid_GridCellRange__ctor_C1_WPF_Grid_GridCellRange_" data-uid="C1.WPF.Grid.GridCellRange.#ctor(C1.WPF.Grid.GridCellRange)">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.-ctor.html#C1_WPF_Grid_GridCellRange__ctor_C1_WPF_Grid_GridCellRange_">GridCellRange(GridCellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.Grid.GridCellRange.html">GridCellRange</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange__ctor_System_Int32_System_Int32_" data-uid="C1.WPF.Grid.GridCellRange.#ctor(System.Int32,System.Int32)">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.-ctor.html#C1_WPF_Grid_GridCellRange__ctor_System_Int32_System_Int32_">GridCellRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.Grid.GridCellRange.html">GridCellRange</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange__ctor_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.WPF.Grid.GridCellRange.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.-ctor.html#C1_WPF_Grid_GridCellRange__ctor_System_Int32_System_Int32_System_Int32_System_Int32_">GridCellRange(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="C1.WPF.Grid.GridCellRange.html">GridCellRange</a> class.</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_WPF_Grid_GridCellRange_Cells" data-uid="C1.WPF.Grid.GridCellRange.Cells">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.Cells.html#C1_WPF_Grid_GridCellRange_Cells">Cells</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the cells in this range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_Column" data-uid="C1.WPF.Grid.GridCellRange.Column">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.Column.html#C1_WPF_Grid_GridCellRange_Column">Column</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the left most column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_Column2" data-uid="C1.WPF.Grid.GridCellRange.Column2">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.Column2.html#C1_WPF_Grid_GridCellRange_Column2">Column2</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the right most column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_ColumnsCount" data-uid="C1.WPF.Grid.GridCellRange.ColumnsCount">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.ColumnsCount.html#C1_WPF_Grid_GridCellRange_ColumnsCount">ColumnsCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of columns</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_IsSingleCell" data-uid="C1.WPF.Grid.GridCellRange.IsSingleCell">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.IsSingleCell.html#C1_WPF_Grid_GridCellRange_IsSingleCell">IsSingleCell</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether this range contains a single cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_IsSingleColumn" data-uid="C1.WPF.Grid.GridCellRange.IsSingleColumn">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.IsSingleColumn.html#C1_WPF_Grid_GridCellRange_IsSingleColumn">IsSingleColumn</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether this range contains a single column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_IsSingleRow" data-uid="C1.WPF.Grid.GridCellRange.IsSingleRow">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.IsSingleRow.html#C1_WPF_Grid_GridCellRange_IsSingleRow">IsSingleRow</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether this range contains a single row.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_Row" data-uid="C1.WPF.Grid.GridCellRange.Row">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.Row.html#C1_WPF_Grid_GridCellRange_Row">Row</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the upper row.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_Row2" data-uid="C1.WPF.Grid.GridCellRange.Row2">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.Row2.html#C1_WPF_Grid_GridCellRange_Row2">Row2</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the bottom row.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_RowsCount" data-uid="C1.WPF.Grid.GridCellRange.RowsCount">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.RowsCount.html#C1_WPF_Grid_GridCellRange_RowsCount">RowsCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number or rows.</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_WPF_Grid_GridCellRange_Contains_C1_WPF_Grid_GridCellRange_" data-uid="C1.WPF.Grid.GridCellRange.Contains(C1.WPF.Grid.GridCellRange)">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.Contains.html#C1_WPF_Grid_GridCellRange_Contains_C1_WPF_Grid_GridCellRange_">Contains(GridCellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether this range contains another range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_Contains_System_Int32_System_Int32_" data-uid="C1.WPF.Grid.GridCellRange.Contains(System.Int32,System.Int32)">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.Contains.html#C1_WPF_Grid_GridCellRange_Contains_System_Int32_System_Int32_">Contains(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether this range contains a given cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_ContainsColumn_System_Int32_" data-uid="C1.WPF.Grid.GridCellRange.ContainsColumn(System.Int32)">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.ContainsColumn.html#C1_WPF_Grid_GridCellRange_ContainsColumn_System_Int32_">ContainsColumn(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether this range contains a given column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_ContainsRow_System_Int32_" data-uid="C1.WPF.Grid.GridCellRange.ContainsRow(System.Int32)">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.ContainsRow.html#C1_WPF_Grid_GridCellRange_ContainsRow_System_Int32_">ContainsRow(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether this range contains a given row.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_Equals_System_Object_" data-uid="C1.WPF.Grid.GridCellRange.Equals(System.Object)">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.Equals.html#C1_WPF_Grid_GridCellRange_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the specified <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a>, is equal to this instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_GetHashCode" data-uid="C1.WPF.Grid.GridCellRange.GetHashCode">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.GetHashCode.html#C1_WPF_Grid_GridCellRange_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a hash code for this instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_Intersects_C1_WPF_Grid_GridCellRange_" data-uid="C1.WPF.Grid.GridCellRange.Intersects(C1.WPF.Grid.GridCellRange)">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.Intersects.html#C1_WPF_Grid_GridCellRange_Intersects_C1_WPF_Grid_GridCellRange_">Intersects(GridCellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Returns true if the ranges intersect.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_ToString" data-uid="C1.WPF.Grid.GridCellRange.ToString">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.ToString.html#C1_WPF_Grid_GridCellRange_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a> that represents this instance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="operators">Operators
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_op_Equality_C1_WPF_Grid_GridCellRange_C1_WPF_Grid_GridCellRange_" data-uid="C1.WPF.Grid.GridCellRange.op_Equality(C1.WPF.Grid.GridCellRange,C1.WPF.Grid.GridCellRange)">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.op_Equality.html#C1_WPF_Grid_GridCellRange_op_Equality_C1_WPF_Grid_GridCellRange_C1_WPF_Grid_GridCellRange_">operator ==(GridCellRange, GridCellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Equality operator for <a class="xref" href="C1.WPF.Grid.GridCellRange.html">GridCellRange</a> objects.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_op_Explicit_C1_WPF_Grid_GridControlRange__C1_WPF_Grid_GridCellRange" data-uid="C1.WPF.Grid.GridCellRange.op_Explicit(C1.WPF.Grid.GridControlRange)~C1.WPF.Grid.GridCellRange">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.op_Explicit.html#C1_WPF_Grid_GridCellRange_op_Explicit_C1_WPF_Grid_GridControlRange__C1_WPF_Grid_GridCellRange">explicit operator GridCellRange(GridControlRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Cast operator which converts a <a class="xref" href="../C1.WPF.GridControl/C1.WPF.Grid.GridControlRange.html">GridControlRange</a> to a <a class="xref" href="C1.WPF.Grid.GridCellRange.html">GridCellRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_op_Implicit_C1_WPF_Grid_GridCellRange__C1_WPF_Grid_GridControlRange" data-uid="C1.WPF.Grid.GridCellRange.op_Implicit(C1.WPF.Grid.GridCellRange)~C1.WPF.Grid.GridControlRange">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.op_Implicit.html#C1_WPF_Grid_GridCellRange_op_Implicit_C1_WPF_Grid_GridCellRange__C1_WPF_Grid_GridControlRange">implicit operator GridControlRange(GridCellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Cast operator which converts a <a class="xref" href="C1.WPF.Grid.GridCellRange.html">GridCellRange</a> to a <a class="xref" href="../C1.WPF.GridControl/C1.WPF.Grid.GridControlRange.html">GridControlRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Grid_GridCellRange_op_Inequality_C1_WPF_Grid_GridCellRange_C1_WPF_Grid_GridCellRange_" data-uid="C1.WPF.Grid.GridCellRange.op_Inequality(C1.WPF.Grid.GridCellRange,C1.WPF.Grid.GridCellRange)">
          <a class="xref" href="C1.WPF.Grid.GridCellRange.op_Inequality.html#C1_WPF_Grid_GridCellRange_op_Inequality_C1_WPF_Grid_GridCellRange_C1_WPF_Grid_GridCellRange_">operator !=(GridCellRange, GridCellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Inequality operator for <a class="xref" href="C1.WPF.Grid.GridCellRange.html">GridCellRange</a> objects.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
