Skip to main content
A newer version of this page is available.
All docs
V18.2
Row

Worksheet.MergeCells(Range, MergeCellsMode) Method

Merges cells in the specified mode.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v18.2.Core.dll

Declaration

void MergeCells(
    Range range,
    MergeCellsMode mode
)

Parameters

Name Type Description
range Range

A Range object that specifies the range of cells to be merged.

mode MergeCellsMode

A MergeCellsMode enumeration member that specifies how to merge cells.

Remarks

To unmerge cells, use the Worksheet.UnMergeCells method.

Another way to merge and unmerge a cell range is to use the range’s RangeExtensions.Merge and RangeExtensions.UnMerge extension methods, defined by the RangeExtensions class. These extension methods are accessible as methods of the Range object and called by using the instance method syntax.

See Also