# FarPoint.Win.Spread.SheetView.ClearRange

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_SheetView_ClearRange_" data-uid="FarPoint.Win.Spread.SheetView.ClearRange*">ClearRange Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_SheetView_ClearRange_" data-uid="FarPoint.Win.Spread.SheetView.ClearRange*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_ClearRange_System_Int32_System_Int32_System_Int32_System_Int32_System_Boolean_" data-uid="FarPoint.Win.Spread.SheetView.ClearRange(System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean)">ClearRange(int, int, int, int, bool)</h4>
<div class="markdown level1 summary"><p>Removes all of the data, formatting, formulas, and notes from a range of cells on this sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ClearRange(int row, int column, int rowCount, int columnCount, bool dataOnly)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ClearRange(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, dataOnly As Boolean)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Row index of first cell in range</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index of first cell in range</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Number of rows in range</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Number of columns in range</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">dataOnly</span></td>
      <td><p>Whether to remove only data</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_ClearRange_" data-uid="FarPoint.Win.Spread.SheetView.ClearRange*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_ClearRange_System_Int32_System_Int32_System_Int32_System_Int32_System_Boolean_FarPoint_Win_Spread_ClipboardCopyOptions_" data-uid="FarPoint.Win.Spread.SheetView.ClearRange(System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean,FarPoint.Win.Spread.ClipboardCopyOptions)">ClearRange(int, int, int, int, bool, ClipboardCopyOptions)</h4>
<div class="markdown level1 summary"><p>Removes all of the data, formatting, formulas, and notes from a range of cells on this sheet.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ClearRange(int row, int column, int rowCount, int columnCount, bool dataOnly, ClipboardCopyOptions copyOptions)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ClearRange(row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, dataOnly As Boolean, copyOptions As ClipboardCopyOptions)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>Row index of first cell in range</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>Column index of first cell in range</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Number of rows in range</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Number of columns in range</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">dataOnly</span></td>
      <td><p>Whether to remove only data</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="FarPoint.Win.Spread.ClipboardCopyOptions.html">ClipboardCopyOptions</a></td>
      <td><span class="parametername">copyOptions</span></td>
      <td><p>ClipboardCopyOptions</p>
</td>
    </tr>
  </tbody>
</table>
</div>
