# FarPoint.Win.Spread.UndoRedo.ColumnMoveUndoAction.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_UndoRedo_ColumnMoveUndoAction__ctor_" data-uid="FarPoint.Win.Spread.UndoRedo.ColumnMoveUndoAction.#ctor*">ColumnMoveUndoAction Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_UndoRedo_ColumnMoveUndoAction__ctor_" data-uid="FarPoint.Win.Spread.UndoRedo.ColumnMoveUndoAction.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_UndoRedo_ColumnMoveUndoAction__ctor_FarPoint_Win_Spread_SheetView_System_Int32_System_Int32_System_Boolean_" data-uid="FarPoint.Win.Spread.UndoRedo.ColumnMoveUndoAction.#ctor(FarPoint.Win.Spread.SheetView,System.Int32,System.Int32,System.Boolean)">ColumnMoveUndoAction(SheetView, int, int, bool)</h4>
<div class="markdown level1 summary"><p>Creates a new ColumnMoveUndoAction action.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ColumnMoveUndoAction(SheetView sheetView, int column, int movedToColumn, bool moveContent)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sheetView As SheetView, column As Integer, movedToColumn 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="FarPoint.Win.Spread.SheetView.html">SheetView</a></td>
      <td><span class="parametername">sheetView</span></td>
      <td><p>Sheet</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>Sheet source column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">movedToColumn</span></td>
      <td><p>Sheet destination column index</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 content in models (or reorder columns)</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_UndoRedo_ColumnMoveUndoAction__ctor_" data-uid="FarPoint.Win.Spread.UndoRedo.ColumnMoveUndoAction.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_UndoRedo_ColumnMoveUndoAction__ctor_FarPoint_Win_Spread_SheetView_System_Int32_System_Int32_System_Int32_System_Boolean_" data-uid="FarPoint.Win.Spread.UndoRedo.ColumnMoveUndoAction.#ctor(FarPoint.Win.Spread.SheetView,System.Int32,System.Int32,System.Int32,System.Boolean)">ColumnMoveUndoAction(SheetView, int, int, int, bool)</h4>
<div class="markdown level1 summary"><p>Creates a new ColumnMoveUndoAction action.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ColumnMoveUndoAction(SheetView sheetView, int column, int movedToColumn, int movedColumnCount, bool moveContent)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sheetView As SheetView, column As Integer, movedToColumn As Integer, movedColumnCount 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="FarPoint.Win.Spread.SheetView.html">SheetView</a></td>
      <td><span class="parametername">sheetView</span></td>
      <td><p>Sheet</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>Sheet source column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">movedToColumn</span></td>
      <td><p>Sheet destination column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">movedColumnCount</span></td>
      <td><p>Number of columns to 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 content in models or reorder columns</p>
</td>
    </tr>
  </tbody>
</table>
</div>
