# GrapeCity.ActiveReports.Design.UndoManager.Undo

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Design_UndoManager_Undo_" data-uid="GrapeCity.ActiveReports.Design.UndoManager.Undo*">Undo Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Design_UndoManager_Undo_" data-uid="GrapeCity.ActiveReports.Design.UndoManager.Undo*"></a>
<h4 id="GrapeCity_ActiveReports_Design_UndoManager_Undo" data-uid="GrapeCity.ActiveReports.Design.UndoManager.Undo">Undo()</h4>
<div class="markdown level1 summary"><p>Reverses the most recent operation in the undo stack.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Undo()</code></pre>
</div>
<h5 id="GrapeCity_ActiveReports_Design_UndoManager_Undo_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method reverts the last action that was recorded in the undo stack, effectively &quot;undoing&quot; the most recent change made by the user.
After the operation is undone, it is moved to the redo stack, allowing it to be redone if necessary.
The <a class="xref" href="GrapeCity.ActiveReports.Design.UndoManager.Changed.html">Changed</a> event is raised to notify subscribers that the state of the undo/redo history has changed.</p>
</div>
<h5 id="GrapeCity_ActiveReports_Design_UndoManager_Undo_examples">Examples</h5>
<pre><code class="lang-csharp">private void UndoButton_Click(object sender, EventArgs args)
{
   _designer.UndoManager.Undo();
}</code></pre>

</div>
