# C1.WPF.RichTextBox.Documents.DocumentHistory

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RichTextBox_Documents_DocumentHistory" data-uid="C1.WPF.RichTextBox.Documents.DocumentHistory" class="text-break">DocumentHistory Class
</h1>
  <div class="markdown level0 summary"><p>Manages the history of actions performed in a document, and provides undo and redo for this actions.</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">DocumentHistory</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.RichTextBox.Documents.html">C1.WPF.RichTextBox.Documents</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.RichTextBox.4.6.2.dll</h6>
  <h5 id="C1_WPF_RichTextBox_Documents_DocumentHistory_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DocumentHistory</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DocumentHistory</code></pre>
  </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="C1_WPF_RichTextBox_Documents_DocumentHistory_CanRedo" data-uid="C1.WPF.RichTextBox.Documents.DocumentHistory.CanRedo">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.DocumentHistory.CanRedo.html#C1_WPF_RichTextBox_Documents_DocumentHistory_CanRedo">CanRedo</a>
        </td>
        <td class="markdown level1 summary"><p>Returns whether there is an action to redo.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_DocumentHistory_CanUndo" data-uid="C1.WPF.RichTextBox.Documents.DocumentHistory.CanUndo">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.DocumentHistory.CanUndo.html#C1_WPF_RichTextBox_Documents_DocumentHistory_CanUndo">CanUndo</a>
        </td>
        <td class="markdown level1 summary"><p>Returns whether there is an action to undo.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_DocumentHistory_Ignore" data-uid="C1.WPF.RichTextBox.Documents.DocumentHistory.Ignore">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.DocumentHistory.Ignore.html#C1_WPF_RichTextBox_Documents_DocumentHistory_Ignore">Ignore</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a value that indicates whether the action is stored in <a class="xref" href="C1.WPF.RichTextBox.Documents.DocumentHistory.html">DocumentHistory</a> or not when change the document.</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_RichTextBox_Documents_DocumentHistory_BeginGroup" data-uid="C1.WPF.RichTextBox.Documents.DocumentHistory.BeginGroup">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.DocumentHistory.BeginGroup.html#C1_WPF_RichTextBox_Documents_DocumentHistory_BeginGroup">BeginGroup()</a>
        </td>
        <td class="markdown level1 summary"><p>Begin an action group, all actions performed in a group are undone together.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_DocumentHistory_Clear" data-uid="C1.WPF.RichTextBox.Documents.DocumentHistory.Clear">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.DocumentHistory.Clear.html#C1_WPF_RichTextBox_Documents_DocumentHistory_Clear">Clear()</a>
        </td>
        <td class="markdown level1 summary"><p>Clear the history of actions.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_DocumentHistory_EndGroup" data-uid="C1.WPF.RichTextBox.Documents.DocumentHistory.EndGroup">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.DocumentHistory.EndGroup.html#C1_WPF_RichTextBox_Documents_DocumentHistory_EndGroup">EndGroup()</a>
        </td>
        <td class="markdown level1 summary"><p>End an action group, see <a class="xref" href="C1.WPF.RichTextBox.Documents.DocumentHistory.BeginGroup.html#C1_WPF_RichTextBox_Documents_DocumentHistory_BeginGroup">BeginGroup()</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_DocumentHistory_Redo" data-uid="C1.WPF.RichTextBox.Documents.DocumentHistory.Redo">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.DocumentHistory.Redo.html#C1_WPF_RichTextBox_Documents_DocumentHistory_Redo">Redo()</a>
        </td>
        <td class="markdown level1 summary"><p>Redo the last undone action.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_RichTextBox_Documents_DocumentHistory_Undo" data-uid="C1.WPF.RichTextBox.Documents.DocumentHistory.Undo">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.DocumentHistory.Undo.html#C1_WPF_RichTextBox_Documents_DocumentHistory_Undo">Undo()</a>
        </td>
        <td class="markdown level1 summary"><p>Undo the last action performed on the document.</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="C1_WPF_RichTextBox_Documents_DocumentHistory_HistoryChanged" data-uid="C1.WPF.RichTextBox.Documents.DocumentHistory.HistoryChanged">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.DocumentHistory.HistoryChanged.html">HistoryChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Fired when the history changes, that is, the list of actions to undo or redo changed.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
