# GrapeCity.ActiveReports.Design.UndoManager

## Content

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



  <h1 id="GrapeCity_ActiveReports_Design_UndoManager" data-uid="GrapeCity.ActiveReports.Design.UndoManager" class="text-break">UndoManager Class
</h1>
  <div class="markdown level0 summary"><p>Manages undo and redo operations for the ActiveReports designer.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><span class="xref">UndoManager</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Design.html">GrapeCity.ActiveReports.Design</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.Design.Win.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Design_UndoManager_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class UndoManager : IDisposable</code></pre>
  </div>
  <h5 id="GrapeCity_ActiveReports_Design_UndoManager_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>
The <a class="xref" href="GrapeCity.ActiveReports.Design.UndoManager.html">UndoManager</a> class encapsulates the functionality required to manage a history of operations performed in the ActiveReports designer, 
allowing users to undo and redo actions. This class interacts with an underlying undo engine to track changes and manage the undo/redo stack.
</p>
    <p>
It provides methods to perform undo and redo operations, query the count of operations available for undo and redo, and retrieve descriptions of these operations 
for display in a user interface. The class also supports clearing the undo/redo history and raises events to notify subscribers when changes occur in the history.
</p>
    <p>
This class implements the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a> interface to properly release resources associated with the undo engine.
</p>
</div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Design_UndoManager_RedoCount" data-uid="GrapeCity.ActiveReports.Design.UndoManager.RedoCount">
          <a class="xref" href="GrapeCity.ActiveReports.Design.UndoManager.RedoCount.html#GrapeCity_ActiveReports_Design_UndoManager_RedoCount">RedoCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of actions currently available in the redo stack.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Design_UndoManager_UndoCount" data-uid="GrapeCity.ActiveReports.Design.UndoManager.UndoCount">
          <a class="xref" href="GrapeCity.ActiveReports.Design.UndoManager.UndoCount.html#GrapeCity_ActiveReports_Design_UndoManager_UndoCount">UndoCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of actions currently stored in the undo stack.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Design_UndoManager_Clear" data-uid="GrapeCity.ActiveReports.Design.UndoManager.Clear">
          <a class="xref" href="GrapeCity.ActiveReports.Design.UndoManager.Clear.html#GrapeCity_ActiveReports_Design_UndoManager_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Empties both the undo and redo stacks, effectively resetting the history.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Design_UndoManager_Dispose" data-uid="GrapeCity.ActiveReports.Design.UndoManager.Dispose">
          <a class="xref" href="GrapeCity.ActiveReports.Design.UndoManager.Dispose.html#GrapeCity_ActiveReports_Design_UndoManager_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Releases all resources used by the <a class="xref" href="GrapeCity.ActiveReports.Design.UndoManager.html">UndoManager</a>.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Design_UndoManager_Redo" data-uid="GrapeCity.ActiveReports.Design.UndoManager.Redo">
          <a class="xref" href="GrapeCity.ActiveReports.Design.UndoManager.Redo.html#GrapeCity_ActiveReports_Design_UndoManager_Redo">Redo()</a>
        </td>
        <td class="markdown level1 summary"><p>Reapplies the most recently undone operation from the redo stack.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Design_UndoManager_RedoDescription_System_Int32_" data-uid="GrapeCity.ActiveReports.Design.UndoManager.RedoDescription(System.Int32)">
          <a class="xref" href="GrapeCity.ActiveReports.Design.UndoManager.RedoDescription.html#GrapeCity_ActiveReports_Design_UndoManager_RedoDescription_System_Int32_">RedoDescription(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves a description of the specified redo action in a human-readable format.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Design_UndoManager_Undo" data-uid="GrapeCity.ActiveReports.Design.UndoManager.Undo">
          <a class="xref" href="GrapeCity.ActiveReports.Design.UndoManager.Undo.html#GrapeCity_ActiveReports_Design_UndoManager_Undo">Undo()</a>
        </td>
        <td class="markdown level1 summary"><p>Reverses the most recent operation in the undo stack.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Design_UndoManager_UndoDescription_System_Int32_" data-uid="GrapeCity.ActiveReports.Design.UndoManager.UndoDescription(System.Int32)">
          <a class="xref" href="GrapeCity.ActiveReports.Design.UndoManager.UndoDescription.html#GrapeCity_ActiveReports_Design_UndoManager_UndoDescription_System_Int32_">UndoDescription(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Retrieves a description of the specified undo action in a human-readable format.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Design_UndoManager_Changed" data-uid="GrapeCity.ActiveReports.Design.UndoManager.Changed">
          <a class="xref" href="GrapeCity.ActiveReports.Design.UndoManager.Changed.html">Changed</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a change is made to the undo or redo stack, indicating that the state of the report has changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
