Aspose::Cells::Cells::Merge method

Cells::Merge(int32_t, int32_t, int32_t, int32_t) method

Merges a specified range of cells into a single cell.

void Aspose::Cells::Cells::Merge(int32_t firstRow, int32_t firstColumn, int32_t totalRows, int32_t totalColumns)
ParameterTypeDescription
firstRowint32_tFirst row of this range(zero based)
firstColumnint32_tFirst column of this range(zero based)
totalRowsint32_tNumber of rows(one based)
totalColumnsint32_tNumber of columns(one based)

Remarks

Reference the merged cell via the address of the upper-left cell in the range.

See Also

Cells::Merge(int32_t, int32_t, int32_t, int32_t, bool) method

Merges a specified range of cells into a single cell.

void Aspose::Cells::Cells::Merge(int32_t firstRow, int32_t firstColumn, int32_t totalRows, int32_t totalColumns, bool mergeConflict)
ParameterTypeDescription
firstRowint32_tFirst row of this range(zero based)
firstColumnint32_tFirst column of this range(zero based)
totalRowsint32_tNumber of rows(one based)
totalColumnsint32_tNumber of columns(one based)
mergeConflictboolMerge 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

Cells::Merge(int32_t, int32_t, int32_t, int32_t, bool, bool) method

Merges a specified range of cells into a single cell.

void Aspose::Cells::Cells::Merge(int32_t firstRow, int32_t firstColumn, int32_t totalRows, int32_t totalColumns, bool checkConflict, bool mergeConflict)
ParameterTypeDescription
firstRowint32_tFirst row of this range(zero based)
firstColumnint32_tFirst column of this range(zero based)
totalRowsint32_tNumber of rows(one based)
totalColumnsint32_tNumber of columns(one based)
checkConflictboolIndicates whether check the merged cells intersects other merged cells
mergeConflictboolMerge 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