public enum HorizontalAlignmentEnum extends Enum<HorizontalAlignmentEnum>
| Enum Constant and Description |
|---|
CENTER
The horizontal alignment is centered, meaning the text is centered across the cell.
|
CENTER_SELECTION
The horizontal alignment is centered across multiple cells.
|
DEFAULT
null
|
DISTRIBUTED
Indicates that each 'word' in each line of text inside the cell is evenly distributed
across the width of the cell, with flush right and left margins.
|
FILL
Indicates that the value of the cell should be filled
across the entire width of the cell.
|
GENERAL
The horizontal alignment is general-aligned.
|
JUSTIFY
The horizontal alignment is justified (flush left and right).
|
LEFT
The horizontal alignment is left-aligned, even in Rightto-Left mode.
|
RIGHT
The horizontal alignment is right-aligned, meaning that cell contents are aligned at the right edge of the cell,
even in Right-to-Left mode.
|
| Modifier and Type | Method and Description |
|---|---|
static HorizontalAlignmentEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HorizontalAlignmentEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HorizontalAlignmentEnum DEFAULT
public static final HorizontalAlignmentEnum GENERAL
public static final HorizontalAlignmentEnum LEFT
public static final HorizontalAlignmentEnum CENTER
public static final HorizontalAlignmentEnum RIGHT
public static final HorizontalAlignmentEnum FILL
public static final HorizontalAlignmentEnum JUSTIFY
public static final HorizontalAlignmentEnum CENTER_SELECTION
public static final HorizontalAlignmentEnum DISTRIBUTED
When there is also an indent value to apply, both the left and right side of the cell are padded by the indent value.
A 'word' is a set of characters with no space character in them.
Two lines inside a cell are separated by a carriage return.
public static HorizontalAlignmentEnum[] values()
for (HorizontalAlignmentEnum c : HorizontalAlignmentEnum.values()) System.out.println(c);
public static HorizontalAlignmentEnum 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.