# GrapeCity.Documents.Word.RangeBase.GetPersistentRange

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_RangeBase_GetPersistentRange_" data-uid="GrapeCity.Documents.Word.RangeBase.GetPersistentRange*">GetPersistentRange Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_RangeBase_GetPersistentRange_" data-uid="GrapeCity.Documents.Word.RangeBase.GetPersistentRange*"></a>
<h4 id="GrapeCity_Documents_Word_RangeBase_GetPersistentRange_GrapeCity_Documents_Word_ContentObject_GrapeCity_Documents_Word_ContentObject_" data-uid="GrapeCity.Documents.Word.RangeBase.GetPersistentRange(GrapeCity.Documents.Word.ContentObject,GrapeCity.Documents.Word.ContentObject)">GetPersistentRange(ContentObject, ContentObject)</h4>
<div class="markdown level1 summary"><p>Creates and returns an instance of <a class="xref" href="GrapeCity.Documents.Word.PersistentRange.html">PersistentRange</a>
with bounds on the specified objects.</p>
<p>
You should dispose the <a class="xref" href="GrapeCity.Documents.Word.PersistentRange.html">PersistentRange</a> returned by this method
when it is no longer needed. Failing to do so may lead to degraded 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(ContentObject first, ContentObject last)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetPersistentRange(first As ContentObject, last As ContentObject) As PersistentRange</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a></td>
      <td><span class="parametername">first</span></td>
      <td><p>The first content object to include in the range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.ContentObject.html">ContentObject</a></td>
      <td><span class="parametername">last</span></td>
      <td><p>The last content object to include in the range.</p>
</td>
    </tr>
  </tbody>
</table>
<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>The newly created instance of <a class="xref" href="GrapeCity.Documents.Word.PersistentRange.html">PersistentRange</a>.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Word_RangeBase_GetPersistentRange_" data-uid="GrapeCity.Documents.Word.RangeBase.GetPersistentRange*"></a>
<h4 id="GrapeCity_Documents_Word_RangeBase_GetPersistentRange_GrapeCity_Documents_Word_Marker_GrapeCity_Documents_Word_Marker_" data-uid="GrapeCity.Documents.Word.RangeBase.GetPersistentRange(GrapeCity.Documents.Word.Marker,GrapeCity.Documents.Word.Marker)">GetPersistentRange(Marker, Marker)</h4>
<div class="markdown level1 summary"><p>Creates and returns an instance of <a class="xref" href="GrapeCity.Documents.Word.PersistentRange.html">PersistentRange</a>
with bounds on the specified markers.</p>
<p>
You should dispose the <a class="xref" href="GrapeCity.Documents.Word.PersistentRange.html">PersistentRange</a> returned by this method
when it is no longer needed. Failing to do so may lead to degraded 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(Marker start, Marker end)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function GetPersistentRange(start As Marker, [end] As Marker) As PersistentRange</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Marker.html">Marker</a></td>
      <td><span class="parametername">start</span></td>
      <td><p>The marker where to start the range.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Word.Marker.html">Marker</a></td>
      <td><span class="parametername">end</span></td>
      <td><p>The marker where to end the range.</p>
</td>
    </tr>
  </tbody>
</table>
<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>The newly created instance of <a class="xref" href="GrapeCity.Documents.Word.PersistentRange.html">PersistentRange</a>.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
