FontStyle
Contents
[
Hide
]
Inheritance: java.lang.Object
public final class FontStyle
Represents a font style.
Fields
Field | Description |
---|---|
Regular | Normal text. |
Bold | Bold text. |
Italic | Italic text. |
Underline | Underlined text. |
Strikeout | Text with a line through the middle. |
Methods
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. |
Regular
public static final int Regular
Normal text.
Bold
public static final int Bold
Bold text.
Italic
public static final int Italic
Italic text.
Underline
public static final int Underline
Underlined text.
Strikeout
public static final int Strikeout
Text with a line through the middle.
toString(int value)
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.
parse(String 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.