# GrapeCity.Documents.Word.ContentObject.GetPersistentRange

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_ContentObject_GetPersistentRange_" data-uid="GrapeCity.Documents.Word.ContentObject.GetPersistentRange*">GetPersistentRange Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_ContentObject_GetPersistentRange_" data-uid="GrapeCity.Documents.Word.ContentObject.GetPersistentRange*"></a>
<h4 id="GrapeCity_Documents_Word_ContentObject_GetPersistentRange" data-uid="GrapeCity.Documents.Word.ContentObject.GetPersistentRange">GetPersistentRange()</h4>
<div class="markdown level1 summary"><p>Creates and returns a <a class="xref" href="GrapeCity.Documents.Word.PersistentRange.html">PersistentRange</a> associated with this content object.</p>
<p>
Unlike the <a class="xref" href="GrapeCity.Documents.Word.Range.html">Range</a> returned by <a class="xref" href="GrapeCity.Documents.Word.ContentObject.GetRange.html#GrapeCity_Documents_Word_ContentObject_GetRange">GetRange()</a>, this persistent range
and any markers on it (see <a class="xref" href="GrapeCity.Documents.Word.RangeBase.Start.html#GrapeCity_Documents_Word_RangeBase_Start">Start</a> and <a class="xref" href="GrapeCity.Documents.Word.RangeBase.End.html#GrapeCity_Documents_Word_RangeBase_End">End</a>)
can still be used if the object is deleted.
</p>
<p>
Note that <a class="xref" href="GrapeCity.Documents.Word.PersistentRange.html">PersistentRange</a> should be disposed when no longer needed to improve performance.
</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public PersistentRange GetPersistentRange()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetPersistentRange() As PersistentRange</code></pre>
</div>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.PersistentRange.html">PersistentRange</a></td>
      <td><p>A new <a class="xref" href="GrapeCity.Documents.Word.PersistentRange.html">PersistentRange</a> instance associated with this content object.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
