Search
Worksheet.merge Method (Int32, Int32, Int32, Int32)
See Also
 






Merges the cells in the specified range into a single cell.

Namespace: com.mindfusion.spreadsheet
Package: com.mindfusion.spreadsheet

 Syntax

Java  Copy Code

public boolean merge (
    int topLeftColumn,
    int topLeftRow,
    int bottomRightColumn,
    int bottomRightRow
)

 Parameters

topLeftColumn

The top-left column of the range of cells.

topLeftRow

The top-left row of the range of cells.

bottomRightColumn

The bottom-right column of the range of cells.

bottomRightRow

The bottom-right row of the range of cells.

 Return Value

true if the merge was successful; otherwise, false.

 Remarks

The merge will fail if the specified range contains only a single cell or if the range intersects with another merged cell.

 See Also