# FarPoint.Win.Chart.UndoRedoManager

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Chart_UndoRedoManager" data-uid="FarPoint.Win.Chart.UndoRedoManager" class="text-break">UndoRedoManager Class
</h1>
  <div class="markdown level0 summary"><p>Represents the manager of the undo actions for the FpChart component.</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">UndoRedoManager</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Win.Chart.html">FarPoint.Win.Chart</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Win.Chart.dll</h6>
  <h5 id="FarPoint_Win_Chart_UndoRedoManager_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class UndoRedoManager</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class UndoRedoManager</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager__ctor_FarPoint_Win_Chart_FpChart_System_Int32_" data-uid="FarPoint.Win.Chart.UndoRedoManager.#ctor(FarPoint.Win.Chart.FpChart,System.Int32)">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.-ctor.html#FarPoint_Win_Chart_UndoRedoManager__ctor_FarPoint_Win_Chart_FpChart_System_Int32_">UndoRedoManager(FpChart, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new undo action manager.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="fields">Fields
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_actionPending" data-uid="FarPoint.Win.Chart.UndoRedoManager.actionPending">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.actionPending.html">actionPending</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies whether an action is in progress (to prevent recursion).</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_chart" data-uid="FarPoint.Win.Chart.UndoRedoManager.chart">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.chart.html">chart</a>
        </td>
        <td class="markdown level1 summary"><p>Fpchart control which can be used to fire events when
executing actions.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_maxLength" data-uid="FarPoint.Win.Chart.UndoRedoManager.maxLength">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.maxLength.html">maxLength</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies the maximum number of UndoAction objects to keep on the undo or redo stacks.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_redoList" data-uid="FarPoint.Win.Chart.UndoRedoManager.redoList">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.redoList.html">redoList</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies the redo stack (last element is on top).</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_undoList" data-uid="FarPoint.Win.Chart.UndoRedoManager.undoList">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.undoList.html">undoList</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies the undo stack (last element is on top).</p>
</td>
      </tr>
    </tbody>
  </table>
  <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="FarPoint_Win_Chart_UndoRedoManager_CanRedo" data-uid="FarPoint.Win.Chart.UndoRedoManager.CanRedo">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.CanRedo.html#FarPoint_Win_Chart_UndoRedoManager_CanRedo">CanRedo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether Redo manager can redo an action, which depends on redo
list is empty or not.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_CanUndo" data-uid="FarPoint.Win.Chart.UndoRedoManager.CanUndo">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.CanUndo.html#FarPoint_Win_Chart_UndoRedoManager_CanUndo">CanUndo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets whether Undo manager can undo an action, which depends on
undo list is empty or not.</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="FarPoint_Win_Chart_UndoRedoManager_Clear" data-uid="FarPoint.Win.Chart.UndoRedoManager.Clear">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.Clear.html#FarPoint_Win_Chart_UndoRedoManager_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears out current Undo and Redo stacks</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_PerformUndoAction_FarPoint_Win_Chart_UndoAction_" data-uid="FarPoint.Win.Chart.UndoRedoManager.PerformUndoAction(FarPoint.Win.Chart.UndoAction)">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.PerformUndoAction.html#FarPoint_Win_Chart_UndoRedoManager_PerformUndoAction_FarPoint_Win_Chart_UndoAction_">PerformUndoAction(UndoAction)</a>
        </td>
        <td class="markdown level1 summary"><p>Performs the specified action (it can then be undone with Undo).</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_PopRedo" data-uid="FarPoint.Win.Chart.UndoRedoManager.PopRedo">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.PopRedo.html#FarPoint_Win_Chart_UndoRedoManager_PopRedo">PopRedo()</a>
        </td>
        <td class="markdown level1 summary"><p>Pops the top action from the redo stack.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_PopUndo" data-uid="FarPoint.Win.Chart.UndoRedoManager.PopUndo">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.PopUndo.html#FarPoint_Win_Chart_UndoRedoManager_PopUndo">PopUndo()</a>
        </td>
        <td class="markdown level1 summary"><p>Pops the top action from the undo stack.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_PushRedo_FarPoint_Win_Chart_UndoAction_" data-uid="FarPoint.Win.Chart.UndoRedoManager.PushRedo(FarPoint.Win.Chart.UndoAction)">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.PushRedo.html#FarPoint_Win_Chart_UndoRedoManager_PushRedo_FarPoint_Win_Chart_UndoAction_">PushRedo(UndoAction)</a>
        </td>
        <td class="markdown level1 summary"><p>Pushes the specified action onto the redo stack.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_PushUndo_FarPoint_Win_Chart_UndoAction_System_Boolean_" data-uid="FarPoint.Win.Chart.UndoRedoManager.PushUndo(FarPoint.Win.Chart.UndoAction,System.Boolean)">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.PushUndo.html#FarPoint_Win_Chart_UndoRedoManager_PushUndo_FarPoint_Win_Chart_UndoAction_System_Boolean_">PushUndo(UndoAction, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Pushes the specified action onto the undo stack.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_Redo" data-uid="FarPoint.Win.Chart.UndoRedoManager.Redo">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.Redo.html#FarPoint_Win_Chart_UndoRedoManager_Redo">Redo()</a>
        </td>
        <td class="markdown level1 summary"><p>Redoes the last action undone with Undo and adds it to the undo list.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_Redo_FarPoint_Win_Chart_UndoAction_" data-uid="FarPoint.Win.Chart.UndoRedoManager.Redo(FarPoint.Win.Chart.UndoAction)">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.Redo.html#FarPoint_Win_Chart_UndoRedoManager_Redo_FarPoint_Win_Chart_UndoAction_">Redo(UndoAction)</a>
        </td>
        <td class="markdown level1 summary"><p>Redoes all actions in the redo stack up to and including the specified action and adds it to the undo list.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_Redo_System_Int32_" data-uid="FarPoint.Win.Chart.UndoRedoManager.Redo(System.Int32)">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.Redo.html#FarPoint_Win_Chart_UndoRedoManager_Redo_System_Int32_">Redo(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Redoes the specified number of actions and adds them to the undo list.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_Undo" data-uid="FarPoint.Win.Chart.UndoRedoManager.Undo">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.Undo.html#FarPoint_Win_Chart_UndoRedoManager_Undo">Undo()</a>
        </td>
        <td class="markdown level1 summary"><p>Undoes the last action done with PerformUndoAction and adds it to the redo list.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_Undo_FarPoint_Win_Chart_UndoAction_" data-uid="FarPoint.Win.Chart.UndoRedoManager.Undo(FarPoint.Win.Chart.UndoAction)">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.Undo.html#FarPoint_Win_Chart_UndoRedoManager_Undo_FarPoint_Win_Chart_UndoAction_">Undo(UndoAction)</a>
        </td>
        <td class="markdown level1 summary"><p>Undoes all actions in the undo stack up to and including the specified action and adds it to the redo list.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_Undo_System_Int32_" data-uid="FarPoint.Win.Chart.UndoRedoManager.Undo(System.Int32)">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.Undo.html#FarPoint_Win_Chart_UndoRedoManager_Undo_System_Int32_">Undo(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Undoes the specified number of actions and adds them to the redo list.</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="FarPoint_Win_Chart_UndoRedoManager_ActionComplete" data-uid="FarPoint.Win.Chart.UndoRedoManager.ActionComplete">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.ActionComplete.html">ActionComplete</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the undo or redo action is complete.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_ActionPerforming" data-uid="FarPoint.Win.Chart.UndoRedoManager.ActionPerforming">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.ActionPerforming.html">ActionPerforming</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the undo or redo action is performing, users
can cancel this action. Actions are cancelled are not added
to the undo list.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_RedoComplete" data-uid="FarPoint.Win.Chart.UndoRedoManager.RedoComplete">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.RedoComplete.html">RedoComplete</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the redo action is complete.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_RedoPerforming" data-uid="FarPoint.Win.Chart.UndoRedoManager.RedoPerforming">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.RedoPerforming.html">RedoPerforming</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the redo action is performing,  user can cancel this redo action.
Cancelled redo action are not added to undo list and are not removed
from redo list.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_UndoComplete" data-uid="FarPoint.Win.Chart.UndoRedoManager.UndoComplete">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.UndoComplete.html">UndoComplete</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the undo action is complete.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Chart_UndoRedoManager_UndoPerforming" data-uid="FarPoint.Win.Chart.UndoRedoManager.UndoPerforming">
          <a class="xref" href="FarPoint.Win.Chart.UndoRedoManager.UndoPerforming.html">UndoPerforming</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when the undo action is performing, user can cancel this undo action.
Cancelled undo action are not added to redo list and are not removed
from undo list.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
