public enum VerticalAlignmentEnum extends Enum<VerticalAlignmentEnum>
| Enum Constant and Description |
|---|
BOTTOM
The vertical alignment is aligned-to-bottom.
|
CENTER
The vertical alignment is centered across the height of the cell.
|
DEFAULT
null
|
DISTRIBUTED
When text direction is horizontal: the vertical alignment of lines of text is distributed vertically,
where each line of text inside the cell is evenly distributed across the height of the cell,
with flush top
|
JUSTIFY
When text direction is horizontal: the vertical alignment of lines of text is distributed vertically,
where each line of text inside the cell is evenly distributed across the height of the cell,
with flush top and bottom margins.
|
TOP
The vertical alignment is aligned-to-top.
|
| Modifier and Type | Method and Description |
|---|---|
static VerticalAlignmentEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VerticalAlignmentEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VerticalAlignmentEnum DEFAULT
public static final VerticalAlignmentEnum TOP
public static final VerticalAlignmentEnum CENTER
public static final VerticalAlignmentEnum BOTTOM
public static final VerticalAlignmentEnum JUSTIFY
When text direction is horizontal: the vertical alignment of lines of text is distributed vertically, where each line of text inside the cell is evenly distributed across the height of the cell, with flush top and bottom margins.
When text direction is vertical: similar behavior as horizontal justification. The alignment is justified (flush top and bottom in this case). For each line of text, each line of the wrapped text in a cell is aligned to the top and bottom (except the last line). If no single line of text wraps in the cell, then the text is not justified.
public static final VerticalAlignmentEnum DISTRIBUTED
When text direction is horizontal: the vertical alignment of lines of text is distributed vertically, where each line of text inside the cell is evenly distributed across the height of the cell, with flush top
When text direction is vertical: behaves exactly as distributed horizontal alignment. The first words in a line of text (appearing at the top of the cell) are flush with the top edge of the cell, and the last words of a line of text are flush with the bottom edge of the cell, and the line of text is distributed evenly from top to bottom.
public static VerticalAlignmentEnum[] values()
for (VerticalAlignmentEnum c : VerticalAlignmentEnum.values()) System.out.println(c);
public static VerticalAlignmentEnum valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018–2023 Alibaba Group. All rights reserved.