HorizontalAlignment

Inheritance: java.lang.Object, java.lang.Enum

public enum HorizontalAlignment extends Enum<HorizontalAlignment>

Describes horizontal alignment.

Fields

FieldDescription
NoneNo alignment.
LeftAlign to left.
CenterCenter alignment.
RightAlign to right.
JustifyJustify alignment.
FullJustifySimilar 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

MethodDescription
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.

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:

ParameterTypeDescription
namejava.lang.String

Returns: HorizontalAlignment

valueOf(int alignmentType)

public static HorizontalAlignment valueOf(int alignmentType)

Parameters:

ParameterTypeDescription
alignmentTypeint

Returns: HorizontalAlignment

getValue()

public int getValue()

Get number of

Returns: int - int value of the HorizontalAlignment element