HorizontalAlignment

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

ValueDescription
NONEThe object is explicitly positioned, usually using its Left property.
DEFAULTSame as NONE.
LEFTSpecifies that the object shall be left aligned to the horizontal alignment base.
CENTERSpecifies that the object shall be centered with respect to the horizontal alignment base.
RIGHTSpecifies that the object shall be right aligned to the horizontal alignment base.
INSIDESpecifies that the object shall be inside of the horizontal alignment base.
OUTSIDESpecifies that the object shall be outside of the horizontal alignment base.

Properties

NameTypeAccessDescription
valuesint[]ReadReturns array of HorizontalAlignment values.

Methods

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

See Also