# FarPoint.Win.Spread.Model.CellRange

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Spread_Model_CellRange" data-uid="FarPoint.Win.Spread.Model.CellRange" class="text-break">CellRange Class
</h1>
  <div class="markdown level0 summary"><p>Represents a selected range of cells for a sheet.</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 class="level2"><a class="xref" href="FarPoint.Win.Spread.Chart.SheetCellRange.html">SheetCellRange</a></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.iserializable">ISerializable</a></div>
    <div><a class="xref" href="../FarPoint.Win/FarPoint.Win.ISerializeSupport.html">ISerializeSupport</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable</a>&lt;<a class="xref" href="FarPoint.Win.Spread.Model.CellRange.html">CellRange</a>&gt;</div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Win.Spread.Model.html">FarPoint.Win.Spread.Model</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Win.Spread.dll</h6>
  <h5 id="FarPoint_Win_Spread_Model_CellRange_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(CellRangeConverter))]
public class CellRange : ISerializable, ISerializeSupport, IEquatable&lt;CellRange&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(CellRangeConverter))&gt;
Public Class CellRange
    Implements ISerializable, ISerializeSupport, IEquatable(Of 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="FarPoint_Win_Spread_Model_CellRange__ctor_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Win.Spread.Model.CellRange.#ctor(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.-ctor.html#FarPoint_Win_Spread_Model_CellRange__ctor_System_Int32_System_Int32_System_Int32_System_Int32_">CellRange(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a range of cells.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.Model.CellRange.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.-ctor.html#FarPoint_Win_Spread_Model_CellRange__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">CellRange(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new range of cells from serialization.</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="FarPoint_Win_Spread_Model_CellRange_Column" data-uid="FarPoint.Win.Spread.Model.CellRange.Column">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.Column.html#FarPoint_Win_Spread_Model_CellRange_Column">Column</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the column index of the first cell in the range.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_ColumnCount" data-uid="FarPoint.Win.Spread.Model.CellRange.ColumnCount">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.ColumnCount.html#FarPoint_Win_Spread_Model_CellRange_ColumnCount">ColumnCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of columns in the range.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_Row" data-uid="FarPoint.Win.Spread.Model.CellRange.Row">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.Row.html#FarPoint_Win_Spread_Model_CellRange_Row">Row</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the row index of the first cell in the range.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_RowCount" data-uid="FarPoint.Win.Spread.Model.CellRange.RowCount">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.RowCount.html#FarPoint_Win_Spread_Model_CellRange_RowCount">RowCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of rows in the 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="FarPoint_Win_Spread_Model_CellRange_Contains_FarPoint_Win_Spread_Model_CellRange_" data-uid="FarPoint.Win.Spread.Model.CellRange.Contains(FarPoint.Win.Spread.Model.CellRange)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.Contains.html#FarPoint_Win_Spread_Model_CellRange_Contains_FarPoint_Win_Spread_Model_CellRange_">Contains(CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the range of cells contains another specified range of cells.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_Contains_System_Int32_System_Int32_" data-uid="FarPoint.Win.Spread.Model.CellRange.Contains(System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.Contains.html#FarPoint_Win_Spread_Model_CellRange_Contains_System_Int32_System_Int32_">Contains(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the range of cells contains the cell at the specified row and column.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_Contains_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Win.Spread.Model.CellRange.Contains(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.Contains.html#FarPoint_Win_Spread_Model_CellRange_Contains_System_Int32_System_Int32_System_Int32_System_Int32_">Contains(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the range of cells contains another specified range of cells.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_Equals_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Win.Spread.Model.CellRange.Equals(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.Equals.html#FarPoint_Win_Spread_Model_CellRange_Equals_System_Int32_System_Int32_System_Int32_System_Int32_">Equals(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the range of cells is the same as another specified range of cells.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_Equals_System_Object_" data-uid="FarPoint.Win.Spread.Model.CellRange.Equals(System.Object)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.Equals.html#FarPoint_Win_Spread_Model_CellRange_Equals_System_Object_">Equals(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the range of cells is the same as another specified range of cells.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_GetHashCode" data-uid="FarPoint.Win.Spread.Model.CellRange.GetHashCode">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.GetHashCode.html#FarPoint_Win_Spread_Model_CellRange_GetHashCode">GetHashCode()</a>
        </td>
        <td class="markdown level1 summary"><p>Serves as a hash function for a particular type.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Win.Spread.Model.CellRange.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.GetObjectData.html#FarPoint_Win_Spread_Model_CellRange_GetObjectData_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_">GetObjectData(SerializationInfo, StreamingContext)</a>
        </td>
        <td class="markdown level1 summary"><p>Populates the SerializationInfo class with information about
the settings of the range of cells.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_IntersectColumn_System_Int32_" data-uid="FarPoint.Win.Spread.Model.CellRange.IntersectColumn(System.Int32)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.IntersectColumn.html#FarPoint_Win_Spread_Model_CellRange_IntersectColumn_System_Int32_">IntersectColumn(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the range of cells intersects the specified column.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_IntersectRow_System_Int32_" data-uid="FarPoint.Win.Spread.Model.CellRange.IntersectRow(System.Int32)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.IntersectRow.html#FarPoint_Win_Spread_Model_CellRange_IntersectRow_System_Int32_">IntersectRow(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the range of cells intersects the specified row.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_IntersectWith_FarPoint_Win_Spread_Model_CellRange_" data-uid="FarPoint.Win.Spread.Model.CellRange.IntersectWith(FarPoint.Win.Spread.Model.CellRange)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.IntersectWith.html#FarPoint_Win_Spread_Model_CellRange_IntersectWith_FarPoint_Win_Spread_Model_CellRange_">IntersectWith(CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Intersects with the new cell range.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_Intersects_FarPoint_Win_Spread_Model_CellRange_" data-uid="FarPoint.Win.Spread.Model.CellRange.Intersects(FarPoint.Win.Spread.Model.CellRange)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.Intersects.html#FarPoint_Win_Spread_Model_CellRange_Intersects_FarPoint_Win_Spread_Model_CellRange_">Intersects(CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the range of cells intersects the specified range.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_Intersects_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Win.Spread.Model.CellRange.Intersects(System.Int32,System.Int32,System.Int32,System.Int32)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.Intersects.html#FarPoint_Win_Spread_Model_CellRange_Intersects_System_Int32_System_Int32_System_Int32_System_Int32_">Intersects(int, int, int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the range of cells intersects the specified range.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_IsValidRange_FarPoint_Win_Spread_SheetView_" data-uid="FarPoint.Win.Spread.Model.CellRange.IsValidRange(FarPoint.Win.Spread.SheetView)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.IsValidRange.html#FarPoint_Win_Spread_Model_CellRange_IsValidRange_FarPoint_Win_Spread_SheetView_">IsValidRange(SheetView)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether this cell range is valid in the specified sheet.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_IsValidRange_FarPoint_Win_Spread_SheetView_System_Boolean_" data-uid="FarPoint.Win.Spread.Model.CellRange.IsValidRange(FarPoint.Win.Spread.SheetView,System.Boolean)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.IsValidRange.html#FarPoint_Win_Spread_Model_CellRange_IsValidRange_FarPoint_Win_Spread_SheetView_System_Boolean_">IsValidRange(SheetView, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether this cell range is valid in the specified sheet and
whether to treat as a span.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_Parse_System_String_" data-uid="FarPoint.Win.Spread.Model.CellRange.Parse(System.String)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.Parse.html#FarPoint_Win_Spread_Model_CellRange_Parse_System_String_">Parse(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts a string to a cell range.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_ToString" data-uid="FarPoint.Win.Spread.Model.CellRange.ToString">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.ToString.html#FarPoint_Win_Spread_Model_CellRange_ToString">ToString()</a>
        </td>
        <td class="markdown level1 summary"><p>Returns the string representation of the cell range.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_TryParse_System_String_FarPoint_Win_Spread_Model_CellRange__" data-uid="FarPoint.Win.Spread.Model.CellRange.TryParse(System.String,FarPoint.Win.Spread.Model.CellRange@)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.TryParse.html#FarPoint_Win_Spread_Model_CellRange_TryParse_System_String_FarPoint_Win_Spread_Model_CellRange__">TryParse(string, out CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts a string to a cell 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="FarPoint_Win_Spread_Model_CellRange_op_Equality_FarPoint_Win_Spread_Model_CellRange_FarPoint_Win_Spread_Model_CellRange_" data-uid="FarPoint.Win.Spread.Model.CellRange.op_Equality(FarPoint.Win.Spread.Model.CellRange,FarPoint.Win.Spread.Model.CellRange)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.op_Equality.html#FarPoint_Win_Spread_Model_CellRange_op_Equality_FarPoint_Win_Spread_Model_CellRange_FarPoint_Win_Spread_Model_CellRange_">operator ==(CellRange, CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether two specified instances of <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.html">CellRange</a> are equal.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Model_CellRange_op_Inequality_FarPoint_Win_Spread_Model_CellRange_FarPoint_Win_Spread_Model_CellRange_" data-uid="FarPoint.Win.Spread.Model.CellRange.op_Inequality(FarPoint.Win.Spread.Model.CellRange,FarPoint.Win.Spread.Model.CellRange)">
          <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.op_Inequality.html#FarPoint_Win_Spread_Model_CellRange_op_Inequality_FarPoint_Win_Spread_Model_CellRange_FarPoint_Win_Spread_Model_CellRange_">operator !=(CellRange, CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether two specified instances of <a class="xref" href="FarPoint.Win.Spread.Model.CellRange.html">CellRange</a> are not equal.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
