public enum XpsFontStyle extends Enum<XpsFontStyle>
Valid values for font styles.
Enum Constant and Description |
---|
Bold
Bold text.
|
BoldItalic
Bold italic text.
|
Italic
Italic text.
|
Regular
Normal text.
|
Modifier and Type | Method and Description |
---|---|
static XpsFontStyle |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static XpsFontStyle[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XpsFontStyle Regular
public static final XpsFontStyle Bold
public static final XpsFontStyle Italic
public static final XpsFontStyle BoldItalic
public static XpsFontStyle[] values()
for (XpsFontStyle c : XpsFontStyle.values()) System.out.println(c);
public static XpsFontStyle valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null