Skip to main content
Row

RangeExtensions.Merge(CellRange, MergeCellsMode) Method

Merge cells in the specified mode.

Namespace: DevExpress.Spreadsheet

Assembly: DevExpress.Spreadsheet.v24.1.Core.dll

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

public static void Merge(
    this CellRange range,
    MergeCellsMode mode
)

Parameters

Name Type Description
range CellRange

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

mode MergeCellsMode

A MergeCellsMode enumeration member that specifies how to merge cells.

Remarks

The Merge method is an extension method of the CellRange object that is called by using the instance method syntax.

To unmerge cells, use the RangeExtensions.UnMerge method.

Another way to merge and unmerge cells in the worksheet is to use the worksheet’s Worksheet.MergeCells and Worksheet.UnMergeCells methods (see the How to: Merge Cells or Split Merged Cells example).

See Also