@Target(value={FIELD,TYPE}) @Retention(value=RUNTIME) @Inherited public @interface ContentStyle
| 限定符和类型 | 可选元素和说明 |
|---|---|
BorderStyleEnum |
borderBottom
Set the type of border to use for the bottom border of the cell
|
BorderStyleEnum |
borderLeft
Set the type of border to use for the left border of the cell
|
BorderStyleEnum |
borderRight
Set the type of border to use for the right border of the cell
|
BorderStyleEnum |
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.
|
FillPatternTypeEnum |
fillPatternType
Setting to one fills the cell with the foreground color...
|
BooleanEnum |
hidden
Set the cell's using this style to be hidden
|
HorizontalAlignmentEnum |
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
|
BooleanEnum |
locked
Set the cell's using this style to be locked
|
BooleanEnum |
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.
|
BooleanEnum |
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
|
VerticalAlignmentEnum |
verticalAlignment
Set the type of vertical alignment for the cell
|
BooleanEnum |
wrapped
Set whether the text should be wrapped.
|
public abstract short dataFormat
BuiltinFormats.public abstract BooleanEnum hidden
public abstract BooleanEnum locked
public abstract BooleanEnum quotePrefix
IgnoredErrorType) like prefixing the cell value with a ' in Excelpublic abstract HorizontalAlignmentEnum horizontalAlignment
public abstract BooleanEnum wrapped
true make all content visible within a
cell by displaying it on multiple linespublic abstract VerticalAlignmentEnum verticalAlignment
public abstract short rotation
public abstract BorderStyleEnum borderLeft
public abstract BorderStyleEnum borderRight
public abstract BorderStyleEnum borderTop
public abstract BorderStyleEnum borderBottom
public abstract short leftBorderColor
IndexedColorspublic abstract short rightBorderColor
IndexedColorspublic abstract short topBorderColor
IndexedColorspublic abstract short bottomBorderColor
IndexedColorspublic abstract FillPatternTypeEnum fillPatternType
FillPatternType.SOLID_FOREGROUNDpublic abstract short fillBackgroundColor
IndexedColorspublic abstract short fillForegroundColor
IndexedColorspublic abstract BooleanEnum shrinkToFit
Copyright © 2018–2022 Alibaba Group. All rights reserved.