Back to Devexpress

RangeExtensions.Merge(CellRange) Method

officefileapi-devexpress-dot-spreadsheet-dot-rangeextensions-dot-merge-x28-devexpress-dot-spreadsheet-dot-cellrange-x29.md

latest2.0 KB
Original Source

RangeExtensions.Merge(CellRange) Method

Merges cells.

Namespace : DevExpress.Spreadsheet

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

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
public static void Merge(
    this CellRange range
)
vb
<ExtensionAttribute>
Public Shared Sub Merge(
    range As CellRange
)

Parameters

NameTypeDescription
rangeCellRange

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

RangeExtensions Class

RangeExtensions Members

DevExpress.Spreadsheet Namespace