Skip to main content
Row

RangeExtensions.Merge(CellRange) Method

Merges cells.

Namespace: DevExpress.Spreadsheet

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

NuGet Package: DevExpress.Spreadsheet.Core

Declaration

public static void Merge(
    this CellRange range
)

Parameters

Name Type Description
range CellRange

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

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