ParagraphAlignment

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

ValueDescription
LEFTText is aligned to the left.
CENTERText is centered horizontally.
RIGHTText is aligned to the right.
JUSTIFYText is aligned to both left and right.
DISTRIBUTEDText is evenly distributed.
ARABIC_MEDIUM_KASHIDAArabic only.
ARABIC_HIGH_KASHIDAArabic only.
ARABIC_LOW_KASHIDAArabic only.
THAI_DISTRIBUTEDThai only.
MATH_ELEMENT_CENTER_AS_GROUPThe only Math element in a line, aligned as ‘Centered As Group’.

Properties

NameTypeAccessDescription
valuesint[]ReadReturns array of ParagraphAlignment values.

Methods

SignatureDescription
getName(paragraphAlignment: int) → StringReturns JAVA_STYLE string representation of integer ParagraphAlignment value.
toString(paragraphAlignment: int) → StringReturns DotNetStyle string representation of integer ParagraphAlignment value.
fromName(paragraphAlignmentName: String) → intReturns integer representation by ParagraphAlignment name.
getValues() → int[]Returns array of ParagraphAlignment values.

See Also