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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_UndoRedo_CellDragDropUndoAction__ctor_" data-uid="FarPoint.Win.Spread.UndoRedo.CellDragDropUndoAction.#ctor*">CellDragDropUndoAction Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_UndoRedo_CellDragDropUndoAction__ctor_" data-uid="FarPoint.Win.Spread.UndoRedo.CellDragDropUndoAction.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_UndoRedo_CellDragDropUndoAction__ctor_FarPoint_Win_Spread_SheetView_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Int32_System_Boolean_" data-uid="FarPoint.Win.Spread.UndoRedo.CellDragDropUndoAction.#ctor(FarPoint.Win.Spread.SheetView,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Int32,System.Boolean)">CellDragDropUndoAction(SheetView, int, int, int, int, int, int, bool)</h4>
<div class="markdown level1 summary"><p>Creates a new undo action for a cell for the drag and drop operation.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CellDragDropUndoAction(SheetView sheetView, int row, int column, int rowCount, int columnCount, int targetRow, int targetColumn, bool copy)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sheetView As SheetView, row As Integer, column As Integer, rowCount As Integer, columnCount As Integer, targetRow As Integer, targetColumn As Integer, copy 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>SheetView</p>
</td>
    </tr>
    <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 start of range to drag and drop</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 start of range to drag and drop</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 to drag and drop</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 to drag and drop</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">targetRow</span></td>
      <td><p>Target row 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">targetColumn</span></td>
      <td><p>Target 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">copy</span></td>
      <td><p>True to copy, false to move</p>
</td>
    </tr>
  </tbody>
</table>
</div>
