# C1.Android.Core.C1Rect.Union

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Android_Core_C1Rect_Union_" data-uid="C1.Android.Core.C1Rect.Union*">Union Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Android_Core_C1Rect_Union_" data-uid="C1.Android.Core.C1Rect.Union*"></a>
<h4 id="C1_Android_Core_C1Rect_Union_C1_Android_Core_C1Rect_" data-uid="C1.Android.Core.C1Rect.Union(C1.Android.Core.C1Rect)">Union(C1Rect)</h4>
<div class="markdown level1 summary"><p>Expands the rectangle represented by the current C1Rect exactly enough to contain the specified rectangle.</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(C1Rect rect)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Union(rect As C1Rect)</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="C1.Android.Core.C1Rect.html">C1Rect</a></td>
      <td><span class="parametername">rect</span></td>
      <td><p>The rectangle to include.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.notimplementedexception">NotImplementedException</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Android_Core_C1Rect_Union_" data-uid="C1.Android.Core.C1Rect.Union*"></a>
<h4 id="C1_Android_Core_C1Rect_Union_C1_Android_Core_C1Point_" data-uid="C1.Android.Core.C1Rect.Union(C1.Android.Core.C1Point)">Union(C1Point)</h4>
<div class="markdown level1 summary"><p>Expands the rectangle represented by the current C1Rect exactly enough to contain the specified point.</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(C1Point point)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub Union(point As C1Point)</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="C1.Android.Core.C1Point.html">C1Point</a></td>
      <td><span class="parametername">point</span></td>
      <td><p>The point to include.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="exceptions">Exceptions</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Condition</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.notimplementedexception">NotImplementedException</a></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="C1_Android_Core_C1Rect_Union_" data-uid="C1.Android.Core.C1Rect.Union*"></a>
<h4 id="C1_Android_Core_C1Rect_Union_C1_Android_Core_C1Rect_C1_Android_Core_C1Rect_" data-uid="C1.Android.Core.C1Rect.Union(C1.Android.Core.C1Rect,C1.Android.Core.C1Rect)">Union(C1Rect, C1Rect)</h4>
<div class="markdown level1 summary"><p>Returns a new rectangle exactly enough to contain the specified rectangles.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public static C1Rect Union(C1Rect rect1, C1Rect rect2)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Shared Function Union(rect1 As C1Rect, rect2 As C1Rect) As C1Rect</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="C1.Android.Core.C1Rect.html">C1Rect</a></td>
      <td><span class="parametername">rect1</span></td>
      <td><p>The first rectangle.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Android.Core.C1Rect.html">C1Rect</a></td>
      <td><span class="parametername">rect2</span></td>
      <td><p>The second rectangle.</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="C1.Android.Core.C1Rect.html">C1Rect</a></td>
      <td></td>
    </tr>
  </tbody>
</table>
</div>
