FontStyle
Leave feedback
On this page
Inheritance: java.lang.Object
public final class FontStyle
Represents a font style.
| Field | Description |
|---|---|
| Regular | Normal text. |
| Bold | Bold text. |
| Italic | Italic text. |
| Underline | Underlined text. |
| Strikeout | Text with a line through the middle. |
| Method | Description |
|---|---|
| toString(int value) | Returns a string representation of the [FontStyle](../../com.groupdocs.watermark.watermarks/fontstyle) value. |
| parse(String value) | Parses a string to a [FontStyle](../../com.groupdocs.watermark.watermarks/fontstyle) enumeration value. |
public static final int Regular
Normal text.
public static final int Bold
Bold text.
public static final int Italic
Italic text.
public static final int Underline
Underlined text.
public static final int Strikeout
Text with a line through the middle.
public static final String toString(int value)
Returns a string representation of the [FontStyle](../../com.groupdocs.watermark.watermarks/fontstyle) value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | int | The value to convert. |
Returns:
java.lang.String - The string representation of the [FontStyle](../../com.groupdocs.watermark.watermarks/fontstyle) value.
public static final int parse(String value)
Parses a string to a [FontStyle](../../com.groupdocs.watermark.watermarks/fontstyle) enumeration value.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | The string to parse. |
Returns:
int - The [FontStyle](../../com.groupdocs.watermark.watermarks/fontstyle) 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.