Merge or Unmerge Range of Cells
Contents
[
Hide
]
You can use Aspose.Cells to merge or split a range of cells. Aspose.Cells provides the Range.Merge() and Range.UnMerge() methods for this purpose. This article explains how to merge a range of cells into a single cell.
Example
The following sample code first creates a range - A1:D4 - then merges the cells in the range into a single cell using the Range.Merge() method. Similarly, you can split cells by creating a range and calling the Range.UnMerge() method.