# GrapeCity.SpreadBuilder.Cells.DDCell.Merge

## Content

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



<h1 id="GrapeCity_SpreadBuilder_Cells_DDCell_Merge_" data-uid="GrapeCity.SpreadBuilder.Cells.DDCell.Merge*">Merge Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_SpreadBuilder_Cells_DDCell_Merge_" data-uid="GrapeCity.SpreadBuilder.Cells.DDCell.Merge*"></a>
<h4 id="GrapeCity_SpreadBuilder_Cells_DDCell_Merge_System_UInt16_System_UInt16_" data-uid="GrapeCity.SpreadBuilder.Cells.DDCell.Merge(System.UInt16,System.UInt16)">Merge(ushort, ushort)</h4>
<div class="markdown level1 summary"><p>Merges this cell with adjacent cells horizontally and vertically.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void Merge(ushort numberOfRowsToMerge, ushort numberOfColumnsToMerge)</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">numberOfRowsToMerge</span></td>
      <td><p>The number of rows to merge with this cell, excluding the current cell.
A value of 1 merges this cell with the one directly below it.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.uint16">ushort</a></td>
      <td><span class="parametername">numberOfColumnsToMerge</span></td>
      <td><p>The number of columns to merge with this cell, excluding the current cell.
A value of 1 merges this cell with the one directly to the right.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_SpreadBuilder_Cells_DDCell_Merge_System_UInt16_System_UInt16__remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This method merges the cell with a specified number of adjacent cells to the right and below, creating a single larger cell.
Do not merge a cell more than once.</p>
</div>
</div>
