[]
Merges this cell with adjacent cells horizontally and vertically.
public void Merge(ushort numberOfRowsToMerge, ushort numberOfColumnsToMerge)
Type | Name | Description |
---|---|---|
ushort | numberOfRowsToMerge | 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. |
ushort | numberOfColumnsToMerge | 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. |
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.