Package | Description |
---|---|
org.dromara.hutool.poi.excel.cell |
Excel中单元格相关类,入口为CellUtil
|
Modifier and Type | Method and Description |
---|---|
static MergedCell |
CellUtil.getMergedCell(org.apache.poi.ss.usermodel.Sheet sheet,
int x,
int y)
获取合并单元格
传入的x,y坐标(列行数)可以是合并单元格范围内的任意一个单元格 |
static MergedCell |
MergedCell.of(org.apache.poi.ss.usermodel.Cell cell,
org.apache.poi.ss.util.CellRangeAddress range)
创建MergedCell
|
static MergedCell |
MergedCell.of(org.apache.poi.ss.usermodel.Cell cell,
int rowCount,
int columnCount)
创建MergedCell
|
MergedCell |
MergedCell.setCellStyle(org.apache.poi.ss.usermodel.CellStyle cellStyle)
设置单元格样式
|
MergedCell |
MergedCell.setValue(Object value)
设置单元格值
|
Copyright © 2025. All rights reserved.