企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
```java //CellRangeAddress(int firstRow, int lastRow, int firstCol, int lastCol) //firstRow - lastRow:将firstRow到lastRow之间的行合并 //firstCol - lastCol:将firstCol到lastCol之间的列合并 //合并前2行前3列 sheet.addMergedRegion(new CellRangeAddress(0,1,0,2)); ``` :-: ![](https://img.kancloud.cn/a2/b3/a2b31dd2960c2098636de4b1fb9038c1_1662x322.png) 合并前 ![](https://img.kancloud.cn/a8/83/a883267175726f5f16325503f4239897_1602x222.png) 合并后