Worksheet.MergeCells(CellRange, MergeCellsMode) Method
In This Article
Merges cells in the specified mode.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.2.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
#Declaration
void MergeCells(
CellRange range,
MergeCellsMode mode
)
#Parameters
Name | Type | Description |
---|---|---|
range | Cell |
A Cell |
mode | Merge |
A Merge |
#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 CellRange object and called by using the instance method syntax.
See Also