| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) org.apache.poi.ss.usermodel.HorizontalAlignment |
align
水平定位,默认居中
|
(专用程序包) org.apache.poi.ss.usermodel.IndexedColors |
backColor
背景色,默认无
|
(专用程序包) org.apache.poi.ss.usermodel.IndexedColors |
color
字体颜色,默认黑色
|
(专用程序包) String |
comment
批注
|
(专用程序包) int |
height
高度,设置是行的高度
|
(专用程序包) String |
pattern
导出日期格式
|
(专用程序包) org.apache.poi.ss.usermodel.VerticalAlignment |
valign
垂直定位,默认居下
|
(专用程序包) int |
width
宽度,不设置默认自动
|
(专用程序包) Boolean |
wrapText
换行显示
|
| 构造器和说明 |
|---|
Style() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Object |
clone() |
static OutColumn.Style |
clone(OutColumn.Style oldStyle)
clone 对象
|
org.apache.poi.ss.usermodel.HorizontalAlignment |
getAlign()
获取水平定位
|
org.apache.poi.ss.usermodel.IndexedColors |
getBackColor()
获取背景色
|
org.apache.poi.ss.usermodel.IndexedColors |
getColor()
获取字体颜色
|
String |
getComment()
获取批注
|
int |
getHeight()
获取高度
|
String |
getPattern()
获取日期格式化 pattern
|
String |
getStyleCacheKey()
获取样式缓存
|
org.apache.poi.ss.usermodel.VerticalAlignment |
getValign()
获取垂直定位
|
int |
getWidth()
获取宽度
|
Boolean |
getWrapText()
获取换行显示
|
void |
setAlign(org.apache.poi.ss.usermodel.HorizontalAlignment align)
设置水平
|
void |
setBackColor(org.apache.poi.ss.usermodel.IndexedColors backColor)
设置背景色
|
void |
setColor(org.apache.poi.ss.usermodel.IndexedColors color)
设置字体颜色
|
void |
setComment(String comment)
设置批注
|
void |
setHeight(int height)
设置高度
|
void |
setPattern(String pattern)
设置日期格式化
|
void |
setValign(org.apache.poi.ss.usermodel.VerticalAlignment valign)
设置垂直
|
void |
setWidth(int width)
设置宽度
|
void |
setWrapText(Boolean wrapText)
设置换行显示
|
int width
int height
org.apache.poi.ss.usermodel.HorizontalAlignment align
org.apache.poi.ss.usermodel.VerticalAlignment valign
org.apache.poi.ss.usermodel.IndexedColors color
org.apache.poi.ss.usermodel.IndexedColors backColor
String pattern
Boolean wrapText
String comment
public String getComment()
public void setComment(String comment)
comment - public String getStyleCacheKey()
public static OutColumn.Style clone(OutColumn.Style oldStyle)
protected Object clone() throws CloneNotSupportedException
clone 在类中 ObjectCloneNotSupportedExceptionpublic int getWidth()
public int getHeight()
public org.apache.poi.ss.usermodel.HorizontalAlignment getAlign()
public org.apache.poi.ss.usermodel.VerticalAlignment getValign()
public org.apache.poi.ss.usermodel.IndexedColors getColor()
public org.apache.poi.ss.usermodel.IndexedColors getBackColor()
public String getPattern()
public void setWidth(int width)
width - 宽度public void setHeight(int height)
height - 宽度public void setAlign(org.apache.poi.ss.usermodel.HorizontalAlignment align)
align - 水平样式public void setValign(org.apache.poi.ss.usermodel.VerticalAlignment valign)
valign - 垂直样式public void setColor(org.apache.poi.ss.usermodel.IndexedColors color)
color - 颜色public void setBackColor(org.apache.poi.ss.usermodel.IndexedColors backColor)
backColor - 背景色public void setPattern(String pattern)
pattern - 格式public Boolean getWrapText()
public void setWrapText(Boolean wrapText)
wrapText - 是否换行显示Copyright © 2023. All rights reserved.