ParagraphAlignment
Overview
ParagraphAlignment is an enum in Aspose.Words FOSS for Java.
Specifies text alignment in a paragraph.
Edition status of its 15 listed members (a property and its accessor methods are listed separately, overloads once): 15 not yet exercised by a verified example.
This enum declares 4 methods for ParagraphAlignment objects in Java programs.
Available methods include: fromName, getName, getValues, toString.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: values.
Values
| Value | Description |
|---|---|
LEFT | Text is aligned to the left. |
CENTER | Text is centered horizontally. |
RIGHT | Text is aligned to the right. |
JUSTIFY | Text is aligned to both left and right. |
DISTRIBUTED | Text is evenly distributed. |
ARABIC_MEDIUM_KASHIDA | Arabic only. |
ARABIC_HIGH_KASHIDA | Arabic only. |
ARABIC_LOW_KASHIDA | Arabic only. |
THAI_DISTRIBUTED | Thai only. |
MATH_ELEMENT_CENTER_AS_GROUP | The only Math element in a line, aligned as ‘Centered As Group’. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
values | int[] | Read | Returns array of ParagraphAlignment values. |
Methods
| Signature | Description |
|---|---|
getName(paragraphAlignment: int) → String | Returns JAVA_STYLE string representation of integer ParagraphAlignment value. |
toString(paragraphAlignment: int) → String | Returns DotNetStyle string representation of integer ParagraphAlignment value. |
fromName(paragraphAlignmentName: String) → int | Returns integer representation by ParagraphAlignment name. |
getValues() → int[] | Returns array of ParagraphAlignment values. |