[]
        
(Showing Draft Content)

GrapeCity.SpreadBuilder.Cells.DDCell.Merge

Merge Method

Merge(ushort, ushort)

Merges this cell with adjacent cells horizontally and vertically.

Declaration
public void Merge(ushort numberOfRowsToMerge, ushort numberOfColumnsToMerge)
Parameters
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.

Remarks

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.