public static enum Text.Style extends Enum<Text.Style>
Enum Constant and Description |
---|
BOLD
粗体
|
ITALIC
斜体
|
NORMAL
正常
|
STRIKEOUT
删除线
|
UNDERLINE
下划线
|
Modifier and Type | Method and Description |
---|---|
static Text.Style |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Text.Style[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Text.Style NORMAL
public static final Text.Style BOLD
public static final Text.Style ITALIC
public static final Text.Style UNDERLINE
public static final Text.Style STRIKEOUT
public static Text.Style[] values()
for (Text.Style c : Text.Style.values()) System.out.println(c);
public static Text.Style 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 nullCopyright © 2022. All rights reserved.