# GrapeCity.ActiveReports.Design.UndoManager.Clear

## Content

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



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



<a id="GrapeCity_ActiveReports_Design_UndoManager_Clear_" data-uid="GrapeCity.ActiveReports.Design.UndoManager.Clear*"></a>
<h4 id="GrapeCity_ActiveReports_Design_UndoManager_Clear" data-uid="GrapeCity.ActiveReports.Design.UndoManager.Clear">Clear()</h4>
<div class="markdown level1 summary"><p>Empties both the undo and redo stacks, effectively resetting the history.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Clear()</code></pre>
</div>
<h5 id="GrapeCity_ActiveReports_Design_UndoManager_Clear_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method clears all recorded operations from both the undo and redo stacks. It is useful when the state of the document changes in such a way that
previous operations are no longer relevant or applicable. After clearing the history, the <a class="xref" href="GrapeCity.ActiveReports.Design.UndoManager.Changed.html">Changed</a> event is raised to notify subscribers
that the undo/redo history has been reset. Additionally, if any subscribers are registered to the <span class="xref">GrapeCity.ActiveReports.Design.UndoManager.Reset</span> event, it is also raised to signal
a complete reset of the undo/redo system.</p>
</div>
</div>
