# GrapeCity.Spreadsheet.Reference.Union

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Spreadsheet_Reference_Union_" data-uid="GrapeCity.Spreadsheet.Reference.Union*">Union Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Spreadsheet_Reference_Union_" data-uid="GrapeCity.Spreadsheet.Reference.Union*"></a>
<h4 id="GrapeCity_Spreadsheet_Reference_Union_System_Int32_System_Int32_" data-uid="GrapeCity.Spreadsheet.Reference.Union(System.Int32,System.Int32)">Union(int, int)</h4>
<div class="markdown level1 summary"><p>Unions the current <a class="xref" href="GrapeCity.Spreadsheet.Reference.html">Reference</a> with the specified reference.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Union(int row, int column)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Union(row As Integer, column As Integer)</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>An integer value indicates the row index of the reference to union.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>An integer value indicates the column index of the reference to union.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_Reference_Union_" data-uid="GrapeCity.Spreadsheet.Reference.Union*"></a>
<h4 id="GrapeCity_Spreadsheet_Reference_Union_System_Int32_System_Int32_System_Int32_System_Int32_" data-uid="GrapeCity.Spreadsheet.Reference.Union(System.Int32,System.Int32,System.Int32,System.Int32)">Union(int, int, int, int)</h4>
<div class="markdown level1 summary"><p>Unions the current <a class="xref" href="GrapeCity.Spreadsheet.Reference.html">Reference</a> with the specified reference.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Union(int row, int column, int row2, int column2)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Union(row As Integer, column As Integer, row2 As Integer, column2 As Integer)</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="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row</span></td>
      <td><p>An integer value indicates the top row index of the reference to union.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column</span></td>
      <td><p>An integer value indicates the left column index of the reference to union.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">row2</span></td>
      <td><p>An integer value indicates the bottom row index of the reference to union.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">column2</span></td>
      <td><p>An integer value indicates the right column index of the reference to union.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Spreadsheet_Reference_Union_" data-uid="GrapeCity.Spreadsheet.Reference.Union*"></a>
<h4 id="GrapeCity_Spreadsheet_Reference_Union_GrapeCity_Spreadsheet_Reference_" data-uid="GrapeCity.Spreadsheet.Reference.Union(GrapeCity.Spreadsheet.Reference)">Union(Reference)</h4>
<div class="markdown level1 summary"><p>Unions the current <a class="xref" href="GrapeCity.Spreadsheet.Reference.html">Reference</a> with the specified reference.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Union(Reference reference)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Union(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">reference</span></td>
      <td><p>The reference.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
