# GrapeCity.Documents.Word.PersistentRange

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="GrapeCity_Documents_Word_PersistentRange" data-uid="GrapeCity.Documents.Word.PersistentRange" class="text-break">PersistentRange Class
</h1>
  <div class="markdown level0 summary"><p>Represents a contiguous area of content objects in a document.
Unlike <a class="xref" href="GrapeCity.Documents.Word.Range.html">Range</a>, PersistentRange is kept alive
and can be used even if the content used to create this range
has been deleted.</p>
<p>
Important: to avoid performance degradation, you should dispose
PersistentRange when it is no longer needed.
</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"><a class="xref" href="GrapeCity.Documents.Word.ContentCollection-1.html">ContentCollection</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a>&gt;</div>
    <div class="level2"><a class="xref" href="GrapeCity.Documents.Word.ContentObjectCollection-1.html">ContentObjectCollection</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a>&gt;</div>
    <div class="level3"><a class="xref" href="GrapeCity.Documents.Word.RangeBase.html">RangeBase</a></div>
    <div class="level4"><a class="xref" href="GrapeCity.Documents.Word.Range.html">Range</a></div>
    <div class="level5"><span class="xref">PersistentRange</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.Documents.Word.IContentList-1.html">IContentList</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlylist-1">IReadOnlyList</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ireadonlycollection-1">IReadOnlyCollection</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.generic.ienumerable-1">IEnumerable</a>&lt;<a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a>&gt;</div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ienumerable">IEnumerable</a></div>
    <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.Documents.Word.html">GrapeCity.Documents.Word</a></h6>
  <h6><strong>Assembly</strong>: DS.Documents.Word.dll</h6>
  <h5 id="GrapeCity_Documents_Word_PersistentRange_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class PersistentRange : Range, IContentList&lt;ContentObject&gt;, IReadOnlyList&lt;ContentObject&gt;, IReadOnlyCollection&lt;ContentObject&gt;, IEnumerable&lt;ContentObject&gt;, IEnumerable, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class PersistentRange
    Inherits Range
    Implements IContentList(Of ContentObject), IReadOnlyList(Of ContentObject), IReadOnlyCollection(Of ContentObject), IEnumerable(Of ContentObject), IEnumerable, IDisposable</code></pre>
  </div>
  <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_Documents_Word_PersistentRange_Dispose" data-uid="GrapeCity.Documents.Word.PersistentRange.Dispose">
          <a class="xref" href="GrapeCity.Documents.Word.PersistentRange.Dispose.html#GrapeCity_Documents_Word_PersistentRange_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Releases allocated range resources.
Should be called once this range is no longer needed.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.Documents.Word.RangeBaseFindReplaceExtensions.Find.html#GrapeCity_Documents_Word_RangeBaseFindReplaceExtensions_Find_GrapeCity_Documents_Word_RangeBase_GrapeCity_Documents_Word_FindOptions_">RangeBaseFindReplaceExtensions.Find(RangeBase, FindOptions)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.Documents.Word.RangeBaseFindReplaceExtensions.Find.html#GrapeCity_Documents_Word_RangeBaseFindReplaceExtensions_Find_GrapeCity_Documents_Word_RangeBase_System_String_GrapeCity_Documents_Word_FindOptions_">RangeBaseFindReplaceExtensions.Find(RangeBase, string, FindOptions)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.Documents.Word.RangeBaseFindReplaceExtensions.Replace.html#GrapeCity_Documents_Word_RangeBaseFindReplaceExtensions_Replace_GrapeCity_Documents_Word_RangeBase_System_String_System_String_GrapeCity_Documents_Word_FindReplaceOptions_">RangeBaseFindReplaceExtensions.Replace(RangeBase, string, string, FindReplaceOptions)</a>
  </div>

</div>
