# C1.WPF.FlexGrid.CellRange

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_FlexGrid_CellRange" data-uid="C1.WPF.FlexGrid.CellRange" class="text-break">CellRange Struct
</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>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.FlexGrid.html">C1.WPF.FlexGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.FlexGrid.4.6.2.dll</h6>
  <h5 id="C1_WPF_FlexGrid_CellRange_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public struct CellRange</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Structure 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_WPF_FlexGrid_CellRange__ctor_System_Int32_System_Int32_" data-uid="C1.WPF.FlexGrid.CellRange.#ctor(System.Int32,System.Int32)">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.-ctor.html#C1_WPF_FlexGrid_CellRange__ctor_System_Int32_System_Int32_">CellRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a> containing a single cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange__ctor_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.WPF.FlexGrid.CellRange.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.-ctor.html#C1_WPF_FlexGrid_CellRange__ctor_System_Int32_System_Int32_System_Int32_System_Int32_">CellRange(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange__ctor_System_Windows_UIElement_" data-uid="C1.WPF.FlexGrid.CellRange.#ctor(System.Windows.UIElement)">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.-ctor.html#C1_WPF_FlexGrid_CellRange__ctor_System_Windows_UIElement_">CellRange(UIElement)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of a <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a> based on a
<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a> that represents a cell.</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_FlexGrid_CellRange_BottomRow" data-uid="C1.WPF.FlexGrid.CellRange.BottomRow">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.BottomRow.html#C1_WPF_FlexGrid_CellRange_BottomRow">BottomRow</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the bottom row in this <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_Cells" data-uid="C1.WPF.FlexGrid.CellRange.Cells">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.Cells.html#C1_WPF_FlexGrid_CellRange_Cells">Cells</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a> that can be used to
iterate over the cells in this <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_Column" data-uid="C1.WPF.FlexGrid.CellRange.Column">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.Column.html#C1_WPF_FlexGrid_CellRange_Column">Column</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the index of the first column in this <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_Column2" data-uid="C1.WPF.FlexGrid.CellRange.Column2">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.Column2.html#C1_WPF_FlexGrid_CellRange_Column2">Column2</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the index of the last column in this <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_ColumnCount" data-uid="C1.WPF.FlexGrid.CellRange.ColumnCount">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.ColumnCount.html#C1_WPF_FlexGrid_CellRange_ColumnCount">ColumnCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets cell range column count.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_ColumnSpan" data-uid="C1.WPF.FlexGrid.CellRange.ColumnSpan">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.ColumnSpan.html#C1_WPF_FlexGrid_CellRange_ColumnSpan">ColumnSpan</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of columns in <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_Empty" data-uid="C1.WPF.FlexGrid.CellRange.Empty">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.Empty.html#C1_WPF_FlexGrid_CellRange_Empty">Empty</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a special value that represents an invalid range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_IsSingleCell" data-uid="C1.WPF.FlexGrid.CellRange.IsSingleCell">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.IsSingleCell.html#C1_WPF_FlexGrid_CellRange_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_FlexGrid_CellRange_IsValid" data-uid="C1.WPF.FlexGrid.CellRange.IsValid">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.IsValid.html#C1_WPF_FlexGrid_CellRange_IsValid">IsValid</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether this range is valid.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_LeftColumn" data-uid="C1.WPF.FlexGrid.CellRange.LeftColumn">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.LeftColumn.html#C1_WPF_FlexGrid_CellRange_LeftColumn">LeftColumn</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the left column in this <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_RightColumn" data-uid="C1.WPF.FlexGrid.CellRange.RightColumn">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.RightColumn.html#C1_WPF_FlexGrid_CellRange_RightColumn">RightColumn</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the right column in this <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_Row" data-uid="C1.WPF.FlexGrid.CellRange.Row">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.Row.html#C1_WPF_FlexGrid_CellRange_Row">Row</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the index of the first row in this <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_Row2" data-uid="C1.WPF.FlexGrid.CellRange.Row2">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.Row2.html#C1_WPF_FlexGrid_CellRange_Row2">Row2</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the index of the last row in this <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_RowCount" data-uid="C1.WPF.FlexGrid.CellRange.RowCount">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.RowCount.html#C1_WPF_FlexGrid_CellRange_RowCount">RowCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets cell range row count.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_RowSpan" data-uid="C1.WPF.FlexGrid.CellRange.RowSpan">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.RowSpan.html#C1_WPF_FlexGrid_CellRange_RowSpan">RowSpan</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the number of rows in <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_TopRow" data-uid="C1.WPF.FlexGrid.CellRange.TopRow">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.TopRow.html#C1_WPF_FlexGrid_CellRange_TopRow">TopRow</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of the top row in this <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a>.</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_FlexGrid_CellRange_Contains_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.CellRange.Contains(C1.WPF.FlexGrid.CellRange)">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.Contains.html#C1_WPF_FlexGrid_CellRange_Contains_C1_WPF_FlexGrid_CellRange_">Contains(CellRange)</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_FlexGrid_CellRange_Contains_System_Int32_System_Int32_" data-uid="C1.WPF.FlexGrid.CellRange.Contains(System.Int32,System.Int32)">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.Contains.html#C1_WPF_FlexGrid_CellRange_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_FlexGrid_CellRange_ContainsColumn_System_Int32_" data-uid="C1.WPF.FlexGrid.CellRange.ContainsColumn(System.Int32)">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.ContainsColumn.html#C1_WPF_FlexGrid_CellRange_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_FlexGrid_CellRange_ContainsRow_System_Int32_" data-uid="C1.WPF.FlexGrid.CellRange.ContainsRow(System.Int32)">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.ContainsRow.html#C1_WPF_FlexGrid_CellRange_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_FlexGrid_CellRange_Equals_System_Object_" data-uid="C1.WPF.FlexGrid.CellRange.Equals(System.Object)">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.Equals.html#C1_WPF_FlexGrid_CellRange_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Indicates whether this instance and a specified object are equal.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_GetHashCode" data-uid="C1.WPF.FlexGrid.CellRange.GetHashCode">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.GetHashCode.html#C1_WPF_FlexGrid_CellRange_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the hash code for this instance.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_Intersection_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.CellRange.Intersection(C1.WPF.FlexGrid.CellRange)">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.Intersection.html#C1_WPF_FlexGrid_CellRange_Intersection_C1_WPF_FlexGrid_CellRange_">Intersection(CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a> that represents the intersection of this range
with a given range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_Intersects_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.CellRange.Intersects(C1.WPF.FlexGrid.CellRange)">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.Intersects.html#C1_WPF_FlexGrid_CellRange_Intersects_C1_WPF_FlexGrid_CellRange_">Intersects(CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether this range intersects with a given range.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_Normalize" data-uid="C1.WPF.FlexGrid.CellRange.Normalize">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.Normalize.html#C1_WPF_FlexGrid_CellRange_Normalize">Normalize()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns a new <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a> normalized so
<a class="xref" href="C1.WPF.FlexGrid.CellRange.Row.html#C1_WPF_FlexGrid_CellRange_Row">Row</a> is less than or equal to <a class="xref" href="C1.WPF.FlexGrid.CellRange.Row2.html#C1_WPF_FlexGrid_CellRange_Row2">Row2</a> and
<a class="xref" href="C1.WPF.FlexGrid.CellRange.Column.html#C1_WPF_FlexGrid_CellRange_Column">Column</a> is less than or equal to <a class="xref" href="C1.WPF.FlexGrid.CellRange.Column2.html#C1_WPF_FlexGrid_CellRange_Column2">Column2</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_SetRange_System_Int32_System_Int32_" data-uid="C1.WPF.FlexGrid.CellRange.SetRange(System.Int32,System.Int32)">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.SetRange.html#C1_WPF_FlexGrid_CellRange_SetRange_System_Int32_System_Int32_">SetRange(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the value of the <a class="xref" href="C1.WPF.FlexGrid.CellRange.Row.html#C1_WPF_FlexGrid_CellRange_Row">Row</a>, <a class="xref" href="C1.WPF.FlexGrid.CellRange.Row2.html#C1_WPF_FlexGrid_CellRange_Row2">Row2</a>,
<a class="xref" href="C1.WPF.FlexGrid.CellRange.Column.html#C1_WPF_FlexGrid_CellRange_Column">Column</a>, and <a class="xref" href="C1.WPF.FlexGrid.CellRange.Column2.html#C1_WPF_FlexGrid_CellRange_Column2">Column2</a> properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_SetRange_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="C1.WPF.FlexGrid.CellRange.SetRange(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.SetRange.html#C1_WPF_FlexGrid_CellRange_SetRange_System_Int32_System_Int32_System_Int32_System_Int32_">SetRange(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the value of the <a class="xref" href="C1.WPF.FlexGrid.CellRange.Row.html#C1_WPF_FlexGrid_CellRange_Row">Row</a>, <a class="xref" href="C1.WPF.FlexGrid.CellRange.Row2.html#C1_WPF_FlexGrid_CellRange_Row2">Row2</a>,
<a class="xref" href="C1.WPF.FlexGrid.CellRange.Column.html#C1_WPF_FlexGrid_CellRange_Column">Column</a>, and <a class="xref" href="C1.WPF.FlexGrid.CellRange.Column2.html#C1_WPF_FlexGrid_CellRange_Column2">Column2</a> properties.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_Union_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.CellRange.Union(C1.WPF.FlexGrid.CellRange)">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.Union.html#C1_WPF_FlexGrid_CellRange_Union_C1_WPF_FlexGrid_CellRange_">Union(CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a> that represents the union of this range
with a given range.</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_FlexGrid_CellRange_op_Equality_C1_WPF_FlexGrid_CellRange_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.CellRange.op_Equality(C1.WPF.FlexGrid.CellRange,C1.WPF.FlexGrid.CellRange)">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.op_Equality.html#C1_WPF_FlexGrid_CellRange_op_Equality_C1_WPF_FlexGrid_CellRange_C1_WPF_FlexGrid_CellRange_">operator ==(CellRange, CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Equality operator for <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a> objects.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_CellRange_op_Inequality_C1_WPF_FlexGrid_CellRange_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.CellRange.op_Inequality(C1.WPF.FlexGrid.CellRange,C1.WPF.FlexGrid.CellRange)">
          <a class="xref" href="C1.WPF.FlexGrid.CellRange.op_Inequality.html#C1_WPF_FlexGrid_CellRange_op_Inequality_C1_WPF_FlexGrid_CellRange_C1_WPF_FlexGrid_CellRange_">operator !=(CellRange, CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Inequality operator for <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a> objects.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
