Package | Description |
---|---|
org.dromara.hutool.poi.excel.style |
Excel样式封装,入口为:StyleUtil
|
Modifier and Type | Method and Description |
---|---|
static CellBorderStyle |
CellBorderStyle.of(org.apache.poi.ss.usermodel.BorderStyle borderStyle,
org.apache.poi.ss.usermodel.IndexedColors colorIndex)
创建单元格边框样式对象,四边框样式保持一致。
|
static CellBorderStyle |
CellBorderStyle.of(org.apache.poi.ss.usermodel.CellStyle cellStyle)
根据CellStyle创建单元格边框样式对象。
|
CellBorderStyle |
CellBorderStyle.setBottomColor(Short bottomColor)
设置底边框的颜色。
|
CellBorderStyle |
CellBorderStyle.setBottomStyle(org.apache.poi.ss.usermodel.BorderStyle bottomStyle)
设置底边框的样式。
|
CellBorderStyle |
CellBorderStyle.setLeftColor(Short leftColor)
设置左边框的颜色。
|
CellBorderStyle |
CellBorderStyle.setLeftStyle(org.apache.poi.ss.usermodel.BorderStyle leftStyle)
设置左边框的样式。
|
CellBorderStyle |
CellBorderStyle.setRightColor(Short rightColor)
设置右边框的颜色。
|
CellBorderStyle |
CellBorderStyle.setRightStyle(org.apache.poi.ss.usermodel.BorderStyle rightStyle)
设置右边框的样式。
|
CellBorderStyle |
CellBorderStyle.setTopColor(Short topColor)
设置上边框的颜色。
|
CellBorderStyle |
CellBorderStyle.setTopStyle(org.apache.poi.ss.usermodel.BorderStyle topStyle)
设置上边框的样式。
|
Modifier and Type | Method and Description |
---|---|
static org.apache.poi.ss.usermodel.CellStyle |
StyleUtil.setBorder(org.apache.poi.ss.usermodel.CellStyle cellStyle,
CellBorderStyle cellBorderStyle)
设置cell的四个边框粗细和颜色
|
static void |
StyleUtil.setBorderStyle(org.apache.poi.ss.usermodel.Sheet sheet,
org.apache.poi.ss.util.CellRangeAddress cellRangeAddress,
CellBorderStyle cellBorderStyle)
根据
CellStyle 设置指定范围边框样式 |
Copyright © 2025. All rights reserved.