HorizontalAlignment
Leave feedback
On this page
Inheritance: java.lang.Object
public final class HorizontalAlignment
Enumeration of possible horizontal alignment values.
| Field | Description |
|---|---|
| None | No alignment (use specified position). |
| Left | Align to left. |
| Center | Center alignment. |
| Right | Align to right. |
| Method | Description |
|---|---|
| toString(int value) | Returns a string representation of the [HorizontalAlignment](../../com.groupdocs.watermark.common/horizontalalignment) value. |
| parse(String value) | Parses a string to a [HorizontalAlignment](../../com.groupdocs.watermark.common/horizontalalignment) enumeration value. |
public static final int None
No alignment (use specified position).
public static final int Left
Align to left.
public static final int Center
Center alignment.
public static final int Right
Align to right.
public static final String toString(int value)
Returns a string representation of the [HorizontalAlignment](../../com.groupdocs.watermark.common/horizontalalignment) value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The value to convert. |
Returns:
java.lang.String - The string representation of the [HorizontalAlignment](../../com.groupdocs.watermark.common/horizontalalignment) value.
public static final int parse(String value)
Parses a string to a [HorizontalAlignment](../../com.groupdocs.watermark.common/horizontalalignment) enumeration value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The string to parse. |
Returns:
int - The [HorizontalAlignment](../../com.groupdocs.watermark.common/horizontalalignment) enumeration value.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.