# GrapeCity.Documents.Word.RangeBase.CompareLocationWith

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Word_RangeBase_CompareLocationWith_" data-uid="GrapeCity.Documents.Word.RangeBase.CompareLocationWith*">CompareLocationWith Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Word_RangeBase_CompareLocationWith_" data-uid="GrapeCity.Documents.Word.RangeBase.CompareLocationWith*"></a>
<h4 id="GrapeCity_Documents_Word_RangeBase_CompareLocationWith_GrapeCity_Documents_Word_RangeBase_" data-uid="GrapeCity.Documents.Word.RangeBase.CompareLocationWith(GrapeCity.Documents.Word.RangeBase)">CompareLocationWith(RangeBase)</h4>
<div class="markdown level1 summary"><p>Compares this range location with another range location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public LocationRelation CompareLocationWith(RangeBase range)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CompareLocationWith(range As RangeBase) As LocationRelation</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.RangeBase.html">RangeBase</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>The range to compare this range with.</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.LocationRelation.html">LocationRelation</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Documents.Word.LocationRelation.html">LocationRelation</a> value representing the result of the comparison.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Documents_Word_RangeBase_CompareLocationWith_GrapeCity_Documents_Word_RangeBase__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Results returns compare that our current range applied on provided <code class="paramref">range</code>. So, for example, result Contains mean our range contains provided range.</p>
</div>
</div>
