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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_UndoRedo_CellEditUndoAction__ctor_" data-uid="FarPoint.Win.Spread.UndoRedo.CellEditUndoAction.#ctor*">CellEditUndoAction Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_UndoRedo_CellEditUndoAction__ctor_" data-uid="FarPoint.Win.Spread.UndoRedo.CellEditUndoAction.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_UndoRedo_CellEditUndoAction__ctor_FarPoint_Win_Spread_SheetView_System_Int32_System_Int32_System_Object_System_Boolean_System_String_System_IFormatProvider_System_String_System_IFormatProvider_System_Boolean_System_Boolean_GrapeCity_Spreadsheet_Direction_" data-uid="FarPoint.Win.Spread.UndoRedo.CellEditUndoAction.#ctor(FarPoint.Win.Spread.SheetView,System.Int32,System.Int32,System.Object,System.Boolean,System.String,System.IFormatProvider,System.String,System.IFormatProvider,System.Boolean,System.Boolean,GrapeCity.Spreadsheet.Direction)">CellEditUndoAction(SheetView, int, int, object, bool, string, IFormatProvider, string, IFormatProvider, bool, bool, Direction)</h4>
<div class="markdown level1 summary"><p>Creates a new cell edit undo action.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public CellEditUndoAction(SheetView sheetView, int row, int column, object newValue, bool isFormula, string oldFormatString, IFormatProvider oldInfo, string currentFormatString, IFormatProvider currentInfo, bool needToSetFormatStringWhenRedo, bool autoFormatting = false, Direction activeCellLocation = (Direction)0)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sheetView As SheetView, row As Integer, column As Integer, newValue As Object, isFormula As Boolean, oldFormatString As String, oldInfo As IFormatProvider, currentFormatString As String, currentInfo As IFormatProvider, needToSetFormatStringWhenRedo As Boolean, Optional autoFormatting As Boolean = False, Optional activeCellLocation As Direction = 0)</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">row</span></td>
      <td><p>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">column</span></td>
      <td><p>Column index</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">newValue</span></td>
      <td><p>Object with new value</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">isFormula</span></td>
      <td><p>Whether the cell content is a formula</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">oldFormatString</span></td>
      <td><p>Previous format string of cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iformatprovider">IFormatProvider</a></td>
      <td><span class="parametername">oldInfo</span></td>
      <td><p>Previous IFormatProvider of cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">currentFormatString</span></td>
      <td><p>Current Format string of cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.iformatprovider">IFormatProvider</a></td>
      <td><span class="parametername">currentInfo</span></td>
      <td><p>Current IFormatProvider of cell</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">needToSetFormatStringWhenRedo</span></td>
      <td><p>Specifies whether the format string is restore when redo</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">autoFormatting</span></td>
      <td></td>
    </tr>
    <tr>
      <td><a class="xref" href="../GrapeCity.Spreadsheet/GrapeCity.Spreadsheet.Direction.html">Direction</a></td>
      <td><span class="parametername">activeCellLocation</span></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
