# FarPoint.Win.Spread.Model.DefaultSheetAxisModel.Move

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_Model_DefaultSheetAxisModel_Move_" data-uid="FarPoint.Win.Spread.Model.DefaultSheetAxisModel.Move*">Move Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_Model_DefaultSheetAxisModel_Move_" data-uid="FarPoint.Win.Spread.Model.DefaultSheetAxisModel.Move*"></a>
<h4 id="FarPoint_Win_Spread_Model_DefaultSheetAxisModel_Move_System_Int32_System_Int32_System_Int32_" data-uid="FarPoint.Win.Spread.Model.DefaultSheetAxisModel.Move(System.Int32,System.Int32,System.Int32)">Move(int, int, int)</h4>
<div class="markdown level1 summary"><p>Moves one or more rows or columns and pastes them at the specified location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void Move(int fromIndex, int toIndex, int count)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub Move(fromIndex As Integer, toIndex As Integer, count As Integer)</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">fromIndex</span></td>
      <td><p>Row or column index at which to start moving rows or columns</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">toIndex</span></td>
      <td><p>Row or column index at which to paste rows or columns</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">count</span></td>
      <td><p>Number of rows or columns to move</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.indexoutofrangeexception">IndexOutOfRangeException</a></td>
      <td><p>Specified start index is not valid; must be between 0 and the total count</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.indexoutofrangeexception">IndexOutOfRangeException</a></td>
      <td><p>Specified destination index is not valid; must be between 0 and the total count</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.argumentexception">ArgumentException</a></td>
      <td><p>Specified count is not valid; must be between 1 and the total count</p>
</td>
    </tr>
  </tbody>
</table>
</div>
