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