# C1.WPF.RichTextBox.Documents.DocumentHistoryGroup

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_RichTextBox_Documents_DocumentHistoryGroup" data-uid="C1.WPF.RichTextBox.Documents.DocumentHistoryGroup" class="text-break">DocumentHistoryGroup Class
</h1>
  <div class="markdown level0 summary"><p>Helper class for handling <a class="xref" href="C1.WPF.RichTextBox.Documents.DocumentHistory.html">DocumentHistory</a> groups, starts a group when constructed, and ends it when disposed. This is meant to be used with the using keyword.</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">DocumentHistoryGroup</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="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_DocumentHistoryGroup_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class DocumentHistoryGroup : IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class DocumentHistoryGroup
    Implements IDisposable</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_RichTextBox_Documents_DocumentHistoryGroup__ctor_C1_WPF_RichTextBox_Documents_DocumentHistory_" data-uid="C1.WPF.RichTextBox.Documents.DocumentHistoryGroup.#ctor(C1.WPF.RichTextBox.Documents.DocumentHistory)">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.DocumentHistoryGroup.-ctor.html#C1_WPF_RichTextBox_Documents_DocumentHistoryGroup__ctor_C1_WPF_RichTextBox_Documents_DocumentHistory_">DocumentHistoryGroup(DocumentHistory)</a>
        </td>
        <td class="markdown level1 summary"><p>Creates a new <a class="xref" href="C1.WPF.RichTextBox.Documents.DocumentHistoryGroup.html">DocumentHistoryGroup</a></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_DocumentHistoryGroup_Dispose" data-uid="C1.WPF.RichTextBox.Documents.DocumentHistoryGroup.Dispose">
          <a class="xref" href="C1.WPF.RichTextBox.Documents.DocumentHistoryGroup.Dispose.html#C1_WPF_RichTextBox_Documents_DocumentHistoryGroup_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Ends the <a class="xref" href="C1.WPF.RichTextBox.Documents.DocumentHistory.html">DocumentHistory</a> group.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
