# C1.WPF.Pivot.UndoStack

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_Pivot_UndoStack" data-uid="C1.WPF.Pivot.UndoStack" class="text-break">UndoStack Class
</h1>
  <div class="markdown level0 summary"><p>Generic Undo/Redo stack.</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">UndoStack</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.Pivot.html">C1.WPF.Pivot</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.Pivot.dll</h6>
  <h5 id="C1_WPF_Pivot_UndoStack_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class UndoStack</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public MustInherit Class UndoStack</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="C1_WPF_Pivot_UndoStack__ctor" data-uid="C1.WPF.Pivot.UndoStack.#ctor">
          <a class="xref" href="C1.WPF.Pivot.UndoStack.-ctor.html#C1_WPF_Pivot_UndoStack__ctor">UndoStack()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of an <a class="xref" href="C1.WPF.Pivot.UndoStack.html">UndoStack</a>.</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="C1_WPF_Pivot_UndoStack_CanRedo" data-uid="C1.WPF.Pivot.UndoStack.CanRedo">
          <a class="xref" href="C1.WPF.Pivot.UndoStack.CanRedo.html#C1_WPF_Pivot_UndoStack_CanRedo">CanRedo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether the stack contains Redo states.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Pivot_UndoStack_CanUndo" data-uid="C1.WPF.Pivot.UndoStack.CanUndo">
          <a class="xref" href="C1.WPF.Pivot.UndoStack.CanUndo.html#C1_WPF_Pivot_UndoStack_CanUndo">CanUndo</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a value that indicates whether the stack contains Undo states.</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="C1_WPF_Pivot_UndoStack_ApplySavedState_System_Object_" data-uid="C1.WPF.Pivot.UndoStack.ApplySavedState(System.Object)">
          <a class="xref" href="C1.WPF.Pivot.UndoStack.ApplySavedState.html#C1_WPF_Pivot_UndoStack_ApplySavedState_System_Object_">ApplySavedState(object)</a>
        </td>
        <td class="markdown level1 summary"><p>Applies a saved state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Pivot_UndoStack_Clear" data-uid="C1.WPF.Pivot.UndoStack.Clear">
          <a class="xref" href="C1.WPF.Pivot.UndoStack.Clear.html#C1_WPF_Pivot_UndoStack_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clears the undo/redo stack.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Pivot_UndoStack_GetCurrentState" data-uid="C1.WPF.Pivot.UndoStack.GetCurrentState">
          <a class="xref" href="C1.WPF.Pivot.UndoStack.GetCurrentState.html#C1_WPF_Pivot_UndoStack_GetCurrentState">GetCurrentState()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an object that represents the current state.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Pivot_UndoStack_Redo" data-uid="C1.WPF.Pivot.UndoStack.Redo">
          <a class="xref" href="C1.WPF.Pivot.UndoStack.Redo.html#C1_WPF_Pivot_UndoStack_Redo">Redo()</a>
        </td>
        <td class="markdown level1 summary"><p>Executes a Redo command.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Pivot_UndoStack_SaveState" data-uid="C1.WPF.Pivot.UndoStack.SaveState">
          <a class="xref" href="C1.WPF.Pivot.UndoStack.SaveState.html#C1_WPF_Pivot_UndoStack_SaveState">SaveState()</a>
        </td>
        <td class="markdown level1 summary"><p>Saves the current state to the stack.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_Pivot_UndoStack_Undo" data-uid="C1.WPF.Pivot.UndoStack.Undo">
          <a class="xref" href="C1.WPF.Pivot.UndoStack.Undo.html#C1_WPF_Pivot_UndoStack_Undo">Undo()</a>
        </td>
        <td class="markdown level1 summary"><p>Executes an Undo command.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
