RangeExtensions.Merge(CellRange, MergeCellsMode) Method
In This Article
Merge cells in the specified mode.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
#Declaration
public static void Merge(
this CellRange range,
MergeCellsMode mode
)
#Parameters
Name | Type | Description |
---|---|---|
range | Cell |
A Cell |
mode | Merge |
A Merge |
#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