| Modifier and Type | Optional Element and Description |
|---|---|
Colors |
background
Specifies background color of cell.
|
boolean |
bold
Specifies whether cell font should be bold.
|
BorderStyle[] |
border
Specifies type of borders to use for the cell.
|
Colors[] |
borderColor
Specifies color of borders to use for the cell.
|
Colors |
color
Specifies color of cell font.
|
FontFamily |
font
Specifies the font of cell to apply.
|
int |
fontSize
Specifies size of cell font in points.
|
HorizontalAlignment |
hAlign
Specifies horizontal alignment of text in the cell.
|
boolean |
italic
Specifies whether cell font should be italic.
|
NumberFormats |
numberFormat
Specifies number format of cell.
|
String |
numberPattern
Specifies custom number format of cell using pattern string.
|
int[] |
padding
Specifies the amount of padding around the cell, in pixels.
|
int |
rotation
Specifies degree of rotation for the text in the cell.
|
boolean |
strikeout
Specifies whether cell font should be strikeout.
|
boolean |
underline
Specifies whether cell font should be underlined.
|
VerticalAlignment |
vAlign
Specifies vertical alignment of text in the cell.
|
boolean |
vertical
Specifies whether the text in the cell should be displayed vertically.
|
WrapStrategy |
wrapStrategy
Specifies how text in the cell should wrap.
|
public abstract FontFamily font
public abstract boolean bold
falsepublic abstract boolean italic
falsepublic abstract boolean strikeout
falsepublic abstract boolean underline
falsepublic abstract NumberFormats numberFormat
NumberFormatspublic abstract String numberPattern
See the Date and Number Formats guide for more information about the supported patterns.
public abstract HorizontalAlignment hAlign
HorizontalAlignmentpublic abstract VerticalAlignment vAlign
VerticalAlignmentpublic abstract WrapStrategy wrapStrategy
WrapStrategypublic abstract int rotation
public abstract boolean vertical
falsepublic abstract BorderStyle[] border
It accepts single value (one style for all borders of the cell) or an array with 4 values where each value correspond to specific border in the following order:
[<top>, <right>, <bottom>, <left>]
BorderStylepublic abstract Colors[] borderColor
It accepts single value (one color for all borders of the cell) or an array with 4 values where each value correspond to specific border in the following order:
[<top>, <right>, <bottom>, <left>]
Colorspublic abstract int[] padding
It accepts single value (one amount for all sides of the cell) or an array with 4 values where each value correspond to amount of padding for specific side in the following order:
[<top>, <right>, <bottom>, <left>]
Copyright © 2022. All rights reserved.