[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IRange.Merge

Merge Method

Merge(bool)

Merges the cells in the represented range into a single merged cell.

Declaration
void Merge(bool isAcross = false)
Sub Merge(Optional isAcross As Boolean = False)
Parameters
Type Name Description
bool isAcross

Optional Object. True to merge cells in each row of the specified range as separate merged cells. The default value is False.

Examples
IRange range = worksheet.Range["A1:B2"];
range.Merge();
bool mergeCells = range.MergeCells;