# GrapeCity.Documents.Imaging.Region.CombineWithRegion

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_Documents_Imaging_Region_CombineWithRegion_" data-uid="GrapeCity.Documents.Imaging.Region.CombineWithRegion*">CombineWithRegion Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_Documents_Imaging_Region_CombineWithRegion_" data-uid="GrapeCity.Documents.Imaging.Region.CombineWithRegion*"></a>
<h4 id="GrapeCity_Documents_Imaging_Region_CombineWithRegion_GrapeCity_Documents_Imaging_Region_GrapeCity_Documents_Imaging_RegionCombineMode_System_Boolean_" data-uid="GrapeCity.Documents.Imaging.Region.CombineWithRegion(GrapeCity.Documents.Imaging.Region,GrapeCity.Documents.Imaging.RegionCombineMode,System.Boolean)">CombineWithRegion(Region, RegionCombineMode, bool)</h4>
<div class="markdown level1 summary"><p>Combines this region with the specified region.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Region CombineWithRegion(Region inputRegion, RegionCombineMode combineMode, bool cloneInputRegion = true)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CombineWithRegion(inputRegion As Region, combineMode As RegionCombineMode, Optional cloneInputRegion As Boolean = True) As Region</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.Imaging.Region.html">Region</a></td>
      <td><span class="parametername">inputRegion</span></td>
      <td><p>The region to combine with this instance.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Imaging.RegionCombineMode.html">RegionCombineMode</a></td>
      <td><span class="parametername">combineMode</span></td>
      <td><p>The type of combine operation to perform.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><span class="parametername">cloneInputRegion</span></td>
      <td><p>Indicates if the input region should be cloned before combining.</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.Imaging.Region.html">Region</a></td>
      <td><p>A copy of the input region that is being combined with this instance.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="GrapeCity_Documents_Imaging_Region_CombineWithRegion_" data-uid="GrapeCity.Documents.Imaging.Region.CombineWithRegion*"></a>
<h4 id="GrapeCity_Documents_Imaging_Region_CombineWithRegion_GrapeCity_Documents_Imaging_Region_GrapeCity_Documents_Imaging_RegionCombineMode_System_Numerics_Matrix3x2_" data-uid="GrapeCity.Documents.Imaging.Region.CombineWithRegion(GrapeCity.Documents.Imaging.Region,GrapeCity.Documents.Imaging.RegionCombineMode,System.Numerics.Matrix3x2)">CombineWithRegion(Region, RegionCombineMode, Matrix3x2)</h4>
<div class="markdown level1 summary"><p>Combines this region with the specified region.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public Region CombineWithRegion(Region inputRegion, RegionCombineMode combineMode, Matrix3x2 inputRegionTransform)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Function CombineWithRegion(inputRegion As Region, combineMode As RegionCombineMode, inputRegionTransform As Matrix3x2) As Region</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.Imaging.Region.html">Region</a></td>
      <td><span class="parametername">inputRegion</span></td>
      <td><p>The region to combine with this instance.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="GrapeCity.Documents.Imaging.RegionCombineMode.html">RegionCombineMode</a></td>
      <td><span class="parametername">combineMode</span></td>
      <td><p>The type of combine operation to perform.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.numerics.matrix3x2">Matrix3x2</a></td>
      <td><span class="parametername">inputRegionTransform</span></td>
      <td><p>The transform to apply to inputRegion before combining.</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.Imaging.Region.html">Region</a></td>
      <td><p>A copy of the input region that is being combined with this instance.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
