| 程序包 | 说明 |
|---|---|
| org.jiang.office.excel.element | |
| org.jiang.office.excel.style |
| 限定符和类型 | 方法和说明 |
|---|---|
ExcelElement |
ExcelElement.style(ExcelCellStyle style) |
| 限定符和类型 | 方法和说明 |
|---|---|
ExcelCellStyle |
ExcelCellStyle.backgroundColor(org.apache.poi.ss.usermodel.IndexedColors color)
设置背景颜色
|
ExcelCellStyle |
ExcelCellStyle.border()
启用默认边框样式和颜色
|
ExcelCellStyle |
ExcelCellStyle.border(org.apache.poi.ss.usermodel.BorderStyle borderStyle)
设置全部边框样式
|
ExcelCellStyle |
ExcelCellStyle.borderBottom(org.apache.poi.ss.usermodel.BorderStyle borderStyle)
设置下边框样式
|
ExcelCellStyle |
ExcelCellStyle.borderColor(org.apache.poi.ss.usermodel.IndexedColors colors)
设置全部边框颜色
|
ExcelCellStyle |
ExcelCellStyle.borderColorBottom(org.apache.poi.ss.usermodel.IndexedColors colors)
设置下边框颜色
|
ExcelCellStyle |
ExcelCellStyle.borderColorLeft(org.apache.poi.ss.usermodel.IndexedColors colors)
设置左边框颜色
|
ExcelCellStyle |
ExcelCellStyle.borderColorRight(org.apache.poi.ss.usermodel.IndexedColors colors)
设置右边框颜色
|
ExcelCellStyle |
ExcelCellStyle.borderColorTop(org.apache.poi.ss.usermodel.IndexedColors colors)
设置上边框颜色
|
ExcelCellStyle |
ExcelCellStyle.borderLeft(org.apache.poi.ss.usermodel.BorderStyle borderStyle)
设置左边框样式
|
ExcelCellStyle |
ExcelCellStyle.borderRight(org.apache.poi.ss.usermodel.BorderStyle borderStyle)
设置右边框样式
|
ExcelCellStyle |
ExcelCellStyle.borderTop(org.apache.poi.ss.usermodel.BorderStyle borderStyle)
设置上边框样式
|
ExcelCellStyle |
ExcelCellStyle.clone() |
ExcelCellStyle |
ExcelCellStyle.font(Consumer<org.apache.poi.ss.usermodel.Font> fun)
字体处理
|
ExcelCellStyle |
ExcelCellStyle.fontBold()
设置字体加粗
|
ExcelCellStyle |
ExcelCellStyle.fontBold(boolean bold)
设置字体加粗
|
ExcelCellStyle |
ExcelCellStyle.fontColor(org.apache.poi.ss.usermodel.IndexedColors color)
设置字体颜色
|
ExcelCellStyle |
ExcelCellStyle.fontHeight(int height)
设置字体高度
|
ExcelCellStyle |
ExcelCellStyle.fontName(String name)
设置字体名称
|
ExcelCellStyle |
ExcelCellStyle.height(int height)
设置高度
|
ExcelCellStyle |
ExcelCellStyle.horizontalAlign(org.apache.poi.ss.usermodel.HorizontalAlignment alignment)
设置水平排列方式
|
ExcelCellStyle |
ExcelCellStyle.horizontalCenter()
设置水平排列方式为:居中
|
ExcelCellStyle |
ExcelCellStyle.horizontalLeft()
设置水平排列方式为:靠左
|
ExcelCellStyle |
ExcelCellStyle.horizontalRight()
设置水平排列方式为:靠右
|
ExcelCellStyle |
ExcelCellStyle.inherit(boolean inherit)
设置是否继承父元素的样式
(不包括 width,height) |
ExcelCellStyle |
ExcelCellStyle.style(Consumer<org.apache.poi.ss.usermodel.CellStyle> fun)
样式处理
|
ExcelCellStyle |
ExcelCellStyle.verticalAlign(org.apache.poi.ss.usermodel.VerticalAlignment alignment)
设置垂直排列方式
|
ExcelCellStyle |
ExcelCellStyle.verticalBottom()
设置垂直排列方式为:底部
|
ExcelCellStyle |
ExcelCellStyle.verticalCenter()
设置垂直排列方式为:居中
|
ExcelCellStyle |
ExcelCellStyle.verticalTop()
设置垂直排列方式为:顶部
|
ExcelCellStyle |
ExcelCellStyle.width(int width)
设置高度
|
ExcelCellStyle |
ExcelCellStyle.wrapText()
设置文本换行
|
ExcelCellStyle |
ExcelCellStyle.wrapText(boolean wrap)
设置文本换行
|
Copyright © 2025 EFCloud. All rights reserved.