HorizontalAlignment
Contents
[
Hide
]Inheritance: java.lang.Object, java.lang.Enum
public enum HorizontalAlignment extends Enum<HorizontalAlignment>
Describes horizontal alignment.
Fields
Field | Description |
---|---|
None | No alignment. |
Left | Align to left. |
Center | Center alignment. |
Right | Align to right. |
Justify | Justify 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. |
Methods
Method | Description |
---|---|
values() | |
valueOf(String name) | |
valueOf(int alignmentType) | |
getValue() | Get number of |
None
public static final HorizontalAlignment None
No alignment.
Left
public static final HorizontalAlignment Left
Align to left.
Center
public static final HorizontalAlignment Center
Center alignment.
Right
public static final HorizontalAlignment Right
Align to right.
Justify
public static final HorizontalAlignment Justify
Justify alignment. Text will be aligned on both left and right margins.
FullJustify
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.
values()
public static HorizontalAlignment[] values()
Returns: com.aspose.pdf.HorizontalAlignment[]
valueOf(String name)
public static HorizontalAlignment valueOf(String name)
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String |
Returns: HorizontalAlignment
valueOf(int alignmentType)
public static HorizontalAlignment valueOf(int alignmentType)
Parameters:
Parameter | Type | Description |
---|---|---|
alignmentType | int |
Returns: HorizontalAlignment
getValue()
public int getValue()
Get number of
Returns: int - int value of the HorizontalAlignment element