@Target(value={FIELD,TYPE}) @Retention(value=RUNTIME) @Inherited public @interface HeadStyle
限定符和类型 | 可选元素和说明 |
---|---|
org.apache.poi.ss.usermodel.BorderStyle |
borderBottom
Set the type of border to use for the bottom border of the cell
|
org.apache.poi.ss.usermodel.BorderStyle |
borderLeft
Set the type of border to use for the left border of the cell
|
org.apache.poi.ss.usermodel.BorderStyle |
borderRight
Set the type of border to use for the right border of the cell
|
org.apache.poi.ss.usermodel.BorderStyle |
borderTop
Set the type of border to use for the top border of the cell
|
short |
bottomBorderColor
Set the color to use for the bottom border
|
short |
dataFormat
Set the data format (must be a valid format).
|
short |
fillBackgroundColor
Set the background fill color.
|
short |
fillForegroundColor
Set the foreground fill color Note: Ensure Foreground color is set prior to background color.
|
org.apache.poi.ss.usermodel.FillPatternType |
fillPatternType
Setting to one fills the cell with the foreground color...
|
boolean |
hidden
Set the cell's using this style to be hidden
|
org.apache.poi.ss.usermodel.HorizontalAlignment |
horizontalAlignment
Set the type of horizontal alignment for the cell
|
short |
indent
Set the number of spaces to indent the text in the cell
|
short |
leftBorderColor
Set the color to use for the left border
|
boolean |
locked
Set the cell's using this style to be locked
|
boolean |
quotePrefix
Turn on or off "Quote Prefix" or "123 Prefix" for the style, which is used to tell Excel that the thing which
looks like a number or a formula shouldn't be treated as on.
|
short |
rightBorderColor
Set the color to use for the right border
|
short |
rotation
Set the degree of rotation for the text in the cell.
|
boolean |
shrinkToFit
Controls if the Cell should be auto-sized to shrink to fit if the text is too long
|
short |
topBorderColor
Set the color to use for the top border
|
org.apache.poi.ss.usermodel.VerticalAlignment |
verticalAlignment
Set the type of vertical alignment for the cell
|
boolean |
wrapped
Set whether the text should be wrapped.
|
public abstract short dataFormat
BuiltinFormats
.public abstract boolean quotePrefix
IgnoredErrorType
) like prefixing the cell value with a ' in Excelpublic abstract org.apache.poi.ss.usermodel.HorizontalAlignment horizontalAlignment
public abstract boolean wrapped
true
make all content visible within a
cell by displaying it on multiple linespublic abstract org.apache.poi.ss.usermodel.VerticalAlignment verticalAlignment
public abstract short rotation
public abstract org.apache.poi.ss.usermodel.BorderStyle borderLeft
public abstract org.apache.poi.ss.usermodel.BorderStyle borderRight
public abstract org.apache.poi.ss.usermodel.BorderStyle borderTop
public abstract org.apache.poi.ss.usermodel.BorderStyle borderBottom
public abstract short leftBorderColor
IndexedColors
public abstract short rightBorderColor
IndexedColors
public abstract short topBorderColor
IndexedColors
public abstract short bottomBorderColor
IndexedColors
public abstract org.apache.poi.ss.usermodel.FillPatternType fillPatternType
FillPatternType.SOLID_FOREGROUND
public abstract short fillBackgroundColor
IndexedColors
Copyright © 2018–2021 Alibaba Group. All rights reserved.