public enum HorizontalAlignment extends Enum<HorizontalAlignment>
Describes horizontal alignment.
Enum Constant and Description |
---|
Center
Center alignment.
|
FullJustify
Similar to 'Justify' alignment, except that the very last line will only be left-aligned in
'Justify' mode, while in 'FullJustify' mode all lines will be left- and right-aligned.
|
Justify
Justify alignment.
|
Left
Align to left.
|
None
No alignment.
|
Right
Align to right.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue()
Get number of
|
static HorizontalAlignment |
valueOf(int alignmentType) |
static HorizontalAlignment |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HorizontalAlignment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HorizontalAlignment None
No alignment.
public static final HorizontalAlignment Left
Align to left.
public static final HorizontalAlignment Center
Center alignment.
public static final HorizontalAlignment Right
Align to right.
public static final HorizontalAlignment Justify
Justify alignment. Text will be aligned on both left and right margins.
public static final HorizontalAlignment FullJustify
Similar to 'Justify' alignment, except that the very last line will only be left-aligned in 'Justify' mode, while in 'FullJustify' mode all lines will be left- and right-aligned.
public static HorizontalAlignment[] values()
for (HorizontalAlignment c : HorizontalAlignment.values()) System.out.println(c);
public static HorizontalAlignment 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 nullpublic static HorizontalAlignment valueOf(int alignmentType)
public int getValue()
Copyright © 2024 Aspose. All Rights Reserved.