Package io.keikai.axyra.sheets.style
Enum Class VAlign
- All Implemented Interfaces:
Serializable,Comparable<VAlign>,Constable
Vertical alignment of the cell content (ECMA-376
ST_VerticalAlignment). Set it with
CellStyle.Builder.verticalAlign(VAlign).-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionContent at the bottom of the cell; Excel's default.Content centered vertically.Distributes the lines evenly over the cell height.Spreads the lines of wrapped text over the cell height.Content at the top of the cell. -
Method Summary
Modifier and TypeMethodDescriptionstatic VAlignParses anST_VerticalAlignmenttoken, case-sensitively.token()The ECMA-376ST_VerticalAlignmenttoken, e.g.static VAlignReturns the enum constant of this class with the specified name.static VAlign[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TOP
Content at the top of the cell. -
CENTER
Content centered vertically. -
BOTTOM
Content at the bottom of the cell; Excel's default. -
JUSTIFY
Spreads the lines of wrapped text over the cell height. -
DISTRIBUTED
Distributes the lines evenly over the cell height.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
token
The ECMA-376ST_VerticalAlignmenttoken, e.g."center".- Returns:
- the token as written in the file
-
from
Parses anST_VerticalAlignmenttoken, case-sensitively.- Parameters:
token- the token, e.g."top"- Returns:
- the matching alignment;
BOTTOMfornull, empty or unknown tokens
-