public class CellBorderStyle extends Object implements Serializable
Constructor and Description |
---|
CellBorderStyle() |
Modifier and Type | Method and Description |
---|---|
Short |
getBottomColor()
获取底边框的颜色。
|
org.apache.poi.ss.usermodel.BorderStyle |
getBottomStyle()
获取底边框的样式。
|
Short |
getLeftColor()
获取左边框的颜色。
|
org.apache.poi.ss.usermodel.BorderStyle |
getLeftStyle()
获取左边框的样式。
|
Short |
getRightColor()
获取右边框的颜色。
|
org.apache.poi.ss.usermodel.BorderStyle |
getRightStyle()
获取右边框的样式。
|
Short |
getTopColor()
获取上边框的颜色。
|
org.apache.poi.ss.usermodel.BorderStyle |
getTopStyle()
获取上边框的样式。
|
static CellBorderStyle |
of(org.apache.poi.ss.usermodel.BorderStyle borderStyle,
org.apache.poi.ss.usermodel.IndexedColors colorIndex)
创建单元格边框样式对象,四边框样式保持一致。
|
static CellBorderStyle |
of(org.apache.poi.ss.usermodel.CellStyle cellStyle)
根据CellStyle创建单元格边框样式对象。
|
CellBorderStyle |
setBottomColor(Short bottomColor)
设置底边框的颜色。
|
CellBorderStyle |
setBottomStyle(org.apache.poi.ss.usermodel.BorderStyle bottomStyle)
设置底边框的样式。
|
CellBorderStyle |
setLeftColor(Short leftColor)
设置左边框的颜色。
|
CellBorderStyle |
setLeftStyle(org.apache.poi.ss.usermodel.BorderStyle leftStyle)
设置左边框的样式。
|
CellBorderStyle |
setRightColor(Short rightColor)
设置右边框的颜色。
|
CellBorderStyle |
setRightStyle(org.apache.poi.ss.usermodel.BorderStyle rightStyle)
设置右边框的样式。
|
org.apache.poi.ss.usermodel.CellStyle |
setTo(org.apache.poi.ss.usermodel.CellStyle cellStyle)
将边框样式和颜色设置到CellStyle中
|
CellBorderStyle |
setTopColor(Short topColor)
设置上边框的颜色。
|
CellBorderStyle |
setTopStyle(org.apache.poi.ss.usermodel.BorderStyle topStyle)
设置上边框的样式。
|
public static CellBorderStyle of(org.apache.poi.ss.usermodel.CellStyle cellStyle)
cellStyle
- 单元格样式public static CellBorderStyle of(org.apache.poi.ss.usermodel.BorderStyle borderStyle, org.apache.poi.ss.usermodel.IndexedColors colorIndex)
borderStyle
- 边框样式colorIndex
- 颜色public org.apache.poi.ss.usermodel.BorderStyle getTopStyle()
public CellBorderStyle setTopStyle(org.apache.poi.ss.usermodel.BorderStyle topStyle)
topStyle
- 上边框的样式。public Short getTopColor()
public CellBorderStyle setTopColor(Short topColor)
topColor
- 上边框的颜色。public org.apache.poi.ss.usermodel.BorderStyle getRightStyle()
public CellBorderStyle setRightStyle(org.apache.poi.ss.usermodel.BorderStyle rightStyle)
rightStyle
- 右边框的样式。public Short getRightColor()
public CellBorderStyle setRightColor(Short rightColor)
rightColor
- 右边框的颜色。public org.apache.poi.ss.usermodel.BorderStyle getBottomStyle()
public CellBorderStyle setBottomStyle(org.apache.poi.ss.usermodel.BorderStyle bottomStyle)
bottomStyle
- 底边框的样式。public Short getBottomColor()
public CellBorderStyle setBottomColor(Short bottomColor)
bottomColor
- 底边框的颜色。public org.apache.poi.ss.usermodel.BorderStyle getLeftStyle()
public CellBorderStyle setLeftStyle(org.apache.poi.ss.usermodel.BorderStyle leftStyle)
leftStyle
- 左边框的样式。public Short getLeftColor()
public CellBorderStyle setLeftColor(Short leftColor)
leftColor
- 左边框的颜色。public org.apache.poi.ss.usermodel.CellStyle setTo(org.apache.poi.ss.usermodel.CellStyle cellStyle)
cellStyle
- CellStyleCopyright © 2025. All rights reserved.