# GrapeCity.Spreadsheet.Reference.IntersectWith

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Reference_IntersectWith_" data-uid="GrapeCity.Spreadsheet.Reference.IntersectWith*">IntersectWith Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Reference_IntersectWith_" data-uid="GrapeCity.Spreadsheet.Reference.IntersectWith*"></a>
<h4 id="GrapeCity_Spreadsheet_Reference_IntersectWith_GrapeCity_Spreadsheet_Reference__" data-uid="GrapeCity.Spreadsheet.Reference.IntersectWith(GrapeCity.Spreadsheet.Reference@)">IntersectWith(ref Reference)</h4>
<div class="markdown level1 summary"><p>Intersects this <a class="xref" href="GrapeCity.Spreadsheet.Reference.html">Reference</a> range with the specified <a class="xref" href="GrapeCity.Spreadsheet.Reference.html">Reference</a> range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[CLSCompliant(false)]
public Reference IntersectWith(ref Reference range)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">&lt;CLSCompliant(False)&gt;
Public Function IntersectWith(ByRef range As Reference) As Reference</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.Spreadsheet.Reference.html">Reference</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Spreadsheet.Reference.html">Reference</a> range to intersect 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.Spreadsheet.Reference.html">Reference</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.Reference.html">Reference</a> range represents the intersected <a class="xref" href="GrapeCity.Spreadsheet.Reference.html">Reference</a> range.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_Reference_IntersectWith_GrapeCity_Spreadsheet_Reference___remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Make sure that all rows and columns are all absolute or relative.</p>
</div>


<a id="GrapeCity_Spreadsheet_Reference_IntersectWith_" data-uid="GrapeCity.Spreadsheet.Reference.IntersectWith*"></a>
<h4 id="GrapeCity_Spreadsheet_Reference_IntersectWith_GrapeCity_Spreadsheet_Reference_" data-uid="GrapeCity.Spreadsheet.Reference.IntersectWith(GrapeCity.Spreadsheet.Reference)">IntersectWith(Reference)</h4>
<div class="markdown level1 summary"><p>Intersects this <a class="xref" href="GrapeCity.Spreadsheet.Reference.html">Reference</a> range with the specified <a class="xref" href="GrapeCity.Spreadsheet.Reference.html">Reference</a> range.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Reference IntersectWith(Reference range)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function IntersectWith(range As Reference) As Reference</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.Spreadsheet.Reference.html">Reference</a></td>
      <td><span class="parametername">range</span></td>
      <td><p>The <a class="xref" href="GrapeCity.Spreadsheet.Reference.html">Reference</a> range to intersect 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.Spreadsheet.Reference.html">Reference</a></td>
      <td><p>A <a class="xref" href="GrapeCity.Spreadsheet.Reference.html">Reference</a> range represents the intersected <a class="xref" href="GrapeCity.Spreadsheet.Reference.html">Reference</a> range.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_Spreadsheet_Reference_IntersectWith_GrapeCity_Spreadsheet_Reference__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Make sure that all rows and columns are all absolute or relative.</p>
</div>
</div>
