TextAlignment

Contents
[ ]

Inheritance: java.lang.Object

public final class TextAlignment

Enumeration of possible text alignment values.

Fields

Field Description
Left Align to left.
Center Center alignment.
Right Align to right.
Justify Justify alignment.

Methods

Method Description
toString(int value) Returns a string representation of the [TextAlignment](../../com.groupdocs.watermark.watermarks/textalignment) value.
parse(String value) Parses a string to a [TextAlignment](../../com.groupdocs.watermark.watermarks/textalignment) enumeration value.

Left

public static final int Left

Align to left.

Center

public static final int Center

Center alignment.

public static final int Right

Align to right.

Justify

public static final int Justify

Justify alignment. Text will be aligned on both left and right margins.

toString(int value)

public static final String toString(int value)

Returns a string representation of the [TextAlignment](../../com.groupdocs.watermark.watermarks/textalignment) value.

Parameters:

Parameter Type Description
value int The value to convert.

Returns: java.lang.String - The string representation of the [TextAlignment](../../com.groupdocs.watermark.watermarks/textalignment) value.

parse(String value)

public static final int parse(String value)

Parses a string to a [TextAlignment](../../com.groupdocs.watermark.watermarks/textalignment) enumeration value.

Parameters:

Parameter Type Description
value java.lang.String The string to parse.

Returns: int - The [TextAlignment](../../com.groupdocs.watermark.watermarks/textalignment) enumeration value.