# FarPoint.Win.Spread.SheetView.MoveColumn

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_SheetView_MoveColumn_" data-uid="FarPoint.Win.Spread.SheetView.MoveColumn*">MoveColumn Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_SheetView_MoveColumn_" data-uid="FarPoint.Win.Spread.SheetView.MoveColumn*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_MoveColumn_System_Int32_System_Int32_System_Boolean_" data-uid="FarPoint.Win.Spread.SheetView.MoveColumn(System.Int32,System.Int32,System.Boolean)">MoveColumn(int, int, bool)</h4>
<div class="markdown level1 summary"><p>Moves the specified column from its current index to the specified index,
and shifts each column in between and the destination column one
column in the direction of the specified column.</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 MoveColumn(int fromIndex, int toIndex, bool moveContent)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub MoveColumn(fromIndex As Integer, toIndex As Integer, moveContent 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">fromIndex</span></td>
      <td><p>Current index of the column to move</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>New index of the column after the move</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">moveContent</span></td>
      <td><p>Whether to move the content</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_SheetView_MoveColumn_" data-uid="FarPoint.Win.Spread.SheetView.MoveColumn*"></a>
<h4 id="FarPoint_Win_Spread_SheetView_MoveColumn_System_Int32_System_Int32_System_Int32_System_Boolean_" data-uid="FarPoint.Win.Spread.SheetView.MoveColumn(System.Int32,System.Int32,System.Int32,System.Boolean)">MoveColumn(int, int, int, bool)</h4>
<div class="markdown level1 summary"><p>Moves the specified column from its current index to the specified index,
and shifts each column in between and the destination column one
column in the direction of the specified column.</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 MoveColumn(int fromIndex, int toIndex, int columnCount, bool moveContent)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub MoveColumn(fromIndex As Integer, toIndex As Integer, columnCount As Integer, moveContent 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">fromIndex</span></td>
      <td><p>Current index of the column to move</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>New index of the column after the move</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>Column count</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">moveContent</span></td>
      <td><p>Whether to move the content</p>
</td>
    </tr>
  </tbody>
</table>
</div>
