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

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Win_Spread_UndoRedo_ChildChangeUndoAction__ctor_" data-uid="FarPoint.Win.Spread.UndoRedo.ChildChangeUndoAction.#ctor*">ChildChangeUndoAction Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Win_Spread_UndoRedo_ChildChangeUndoAction__ctor_" data-uid="FarPoint.Win.Spread.UndoRedo.ChildChangeUndoAction.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_UndoRedo_ChildChangeUndoAction__ctor_FarPoint_Win_Spread_SheetView_FarPoint_Win_ElementWindowless_" data-uid="FarPoint.Win.Spread.UndoRedo.ChildChangeUndoAction.#ctor(FarPoint.Win.Spread.SheetView,FarPoint.Win.ElementWindowless)">ChildChangeUndoAction(SheetView, ElementWindowless)</h4>
<div class="markdown level1 summary"><p>Creates a new undo action for moving or sizing a child control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ChildChangeUndoAction(SheetView sheetView, ElementWindowless shape)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sheetView As SheetView, shape As ElementWindowless)</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></td>
    </tr>
    <tr>
      <td><a class="xref" href="../FarPoint.Win/FarPoint.Win.ElementWindowless.html">ElementWindowless</a></td>
      <td><span class="parametername">shape</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_UndoRedo_ChildChangeUndoAction__ctor_" data-uid="FarPoint.Win.Spread.UndoRedo.ChildChangeUndoAction.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_UndoRedo_ChildChangeUndoAction__ctor_FarPoint_Win_Spread_SheetView_FarPoint_Win_ElementWindowless_System_Boolean_" data-uid="FarPoint.Win.Spread.UndoRedo.ChildChangeUndoAction.#ctor(FarPoint.Win.Spread.SheetView,FarPoint.Win.ElementWindowless,System.Boolean)">ChildChangeUndoAction(SheetView, ElementWindowless, bool)</h4>
<div class="markdown level1 summary"><p>Creates a new undo action for changing the specified shape or cell note in the specified SheetView.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ChildChangeUndoAction(SheetView sheetView, ElementWindowless shape, bool attachUIChangeCompleteHandler)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(sheetView As SheetView, shape As ElementWindowless, attachUIChangeCompleteHandler 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="../FarPoint.Win/FarPoint.Win.ElementWindowless.html">ElementWindowless</a></td>
      <td><span class="parametername">shape</span></td>
      <td><p>ElementWindowless</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">attachUIChangeCompleteHandler</span></td>
      <td><p>True to attach a handler to the UIChangeComplete event to the shape (when shape is PSShape only)</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="FarPoint_Win_Spread_UndoRedo_ChildChangeUndoAction__ctor_FarPoint_Win_Spread_SheetView_FarPoint_Win_ElementWindowless_System_Boolean__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This object saved undo state on construction, rather than during PerformUndoAction, since the shape object implements the user interface to make changes to itself. The SpreadView will call PerformUndoAction when the shape's UIChangeComplete event fires and edit mode is off (if the shape is a cell note).</p>
</div>


<a id="FarPoint_Win_Spread_UndoRedo_ChildChangeUndoAction__ctor_" data-uid="FarPoint.Win.Spread.UndoRedo.ChildChangeUndoAction.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_UndoRedo_ChildChangeUndoAction__ctor_System_Int32_System_Int32_System_Int32_System_Int32_System_Single_" data-uid="FarPoint.Win.Spread.UndoRedo.ChildChangeUndoAction.#ctor(System.Int32,System.Int32,System.Int32,System.Int32,System.Single)">ChildChangeUndoAction(int, int, int, int, float)</h4>
<div class="markdown level1 summary"><p>Creates a new undo action for moving a shape or cell note in the specified direction, changing its width and height, and rotation angle (for shapes only).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ChildChangeUndoAction(int dx, int dy, int dw, int dh, float dr)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(dx As Integer, dy As Integer, dw As Integer, dh As Integer, dr As Single)</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">dx</span></td>
      <td><p>Horizontal change</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">dy</span></td>
      <td><p>Vertical change</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">dw</span></td>
      <td><p>Width change</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">dh</span></td>
      <td><p>Height change</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.single">float</a></td>
      <td><span class="parametername">dr</span></td>
      <td><p>Rotation angle change</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Win_Spread_UndoRedo_ChildChangeUndoAction__ctor_" data-uid="FarPoint.Win.Spread.UndoRedo.ChildChangeUndoAction.#ctor*"></a>
<h4 id="FarPoint_Win_Spread_UndoRedo_ChildChangeUndoAction__ctor_System_Windows_Forms_Control_System_Drawing_Rectangle_System_Drawing_Rectangle_" data-uid="FarPoint.Win.Spread.UndoRedo.ChildChangeUndoAction.#ctor(System.Windows.Forms.Control,System.Drawing.Rectangle,System.Drawing.Rectangle)">ChildChangeUndoAction(Control, Rectangle, Rectangle)</h4>
<div class="markdown level1 summary"><p>Creates a new undo action for moving or sizing a child control.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ChildChangeUndoAction(Control ctl, Rectangle oldBounds, Rectangle newBounds)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(ctl As Control, oldBounds As Rectangle, newBounds As Rectangle)</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.windows.forms.control">Control</a></td>
      <td><span class="parametername">ctl</span></td>
      <td><p>Control</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">oldBounds</span></td>
      <td><p>Rectangle</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.drawing.rectangle">Rectangle</a></td>
      <td><span class="parametername">newBounds</span></td>
      <td><p>Rectangle</p>
</td>
    </tr>
  </tbody>
</table>
</div>
