# GrapeCity.SpreadBuilder.Cells.MergeArea.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_SpreadBuilder_Cells_MergeArea__ctor_" data-uid="GrapeCity.SpreadBuilder.Cells.MergeArea.#ctor*">MergeArea Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_SpreadBuilder_Cells_MergeArea__ctor_" data-uid="GrapeCity.SpreadBuilder.Cells.MergeArea.#ctor*"></a>
<h4 id="GrapeCity_SpreadBuilder_Cells_MergeArea__ctor_System_UInt16_System_UInt16_System_UInt16_System_UInt16_" data-uid="GrapeCity.SpreadBuilder.Cells.MergeArea.#ctor(System.UInt16,System.UInt16,System.UInt16,System.UInt16)">MergeArea(ushort, ushort, ushort, ushort)</h4>
<div class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.SpreadBuilder.Cells.MergeArea.html">MergeArea</a> struct with specified cell coordinates, defining a rectangular region to be merged.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public MergeArea(ushort rowFrom, ushort rowTo, ushort columnFrom, ushort columnTo)</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.uint16">ushort</a></td>
      <td><span class="parametername">rowFrom</span></td>
      <td><p>The topmost row of the merged rectangular region.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uint16">ushort</a></td>
      <td><span class="parametername">rowTo</span></td>
      <td><p>The bottommost row of the merged rectangular region.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uint16">ushort</a></td>
      <td><span class="parametername">columnFrom</span></td>
      <td><p>The leftmost column of the merged rectangular region.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uint16">ushort</a></td>
      <td><span class="parametername">columnTo</span></td>
      <td><p>The rightmost column of the merged rectangular region.</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.argumentexception">ArgumentException</a></td>
      <td><p>Thrown when <code class="paramref">rowFrom</code> is greater than <code class="paramref">rowTo</code>, or <code class="paramref">columnFrom</code> is greater than <code class="paramref">columnTo</code>, indicating an invalid rectangular region.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
