HorizontalAlignment
Overview
HorizontalAlignment is an enum in Aspose.Words FOSS for Java.
Specifies horizontal alignment of a floating shape, text frame or floating table.
Edition status of its 12 listed members (a property and its accessor methods are listed separately, overloads once): 12 not yet exercised by a verified example.
This enum declares 4 methods for HorizontalAlignment 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 |
|---|---|
NONE | The object is explicitly positioned, usually using its Left property. |
DEFAULT | Same as NONE. |
LEFT | Specifies that the object shall be left aligned to the horizontal alignment base. |
CENTER | Specifies that the object shall be centered with respect to the horizontal alignment base. |
RIGHT | Specifies that the object shall be right aligned to the horizontal alignment base. |
INSIDE | Specifies that the object shall be inside of the horizontal alignment base. |
OUTSIDE | Specifies that the object shall be outside of the horizontal alignment base. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
values | int[] | Read | Returns array of HorizontalAlignment values. |
Methods
| Signature | Description |
|---|---|
getName(horizontalAlignment: int) → String | Returns JAVA_STYLE string representation of integer HorizontalAlignment value. |
toString(horizontalAlignment: int) → String | Returns DotNetStyle string representation of integer HorizontalAlignment value. |
fromName(horizontalAlignmentName: String) → int | Returns integer representation by HorizontalAlignment name. |
getValues() → int[] | Returns array of HorizontalAlignment values. |