CellsMerge Method (Int32, Int32, Int32, Int32, Boolean, Boolean)

Merges a specified range of cells into a single cell.

Namespace:  Aspose.Cells
Assembly:  Aspose.Cells (in Aspose.Cells.dll) Version: 21.6.0.0 (21.6)
Syntax
public void Merge(
	int firstRow,
	int firstColumn,
	int totalRows,
	int totalColumns,
	bool checkConflict,
	bool mergeConflict
)

Parameters

firstRow
Type: SystemInt32
First row of this range(zero based)
firstColumn
Type: SystemInt32
First column of this range(zero based)
totalRows
Type: SystemInt32
Number of rows(one based)
totalColumns
Type: SystemInt32
Number of columns(one based)
checkConflict
Type: SystemBoolean
Indicates whether check the merged cells intersects other merged cells
mergeConflict
Type: SystemBoolean
Merge conflict merged ranges.
Remarks
Reference the merged cell via the address of the upper-left cell in the range. If mergeConflict is true and the merged range conflicts with other merged cells, other merged cells will be automatically removed.
See Also