public enum FontStyle extends Enum<FontStyle>
| 枚举常量和说明 |
|---|
BOLD
粗体
|
DEFAULT
默认
|
ITALIC
斜体
|
REVERSE
反显
|
REVERSE2
反显
|
STRIKETHROUGH
删除线
|
UNDER_SCORE
下划线
|
public static final FontStyle DEFAULT
public static final FontStyle BOLD
public static final FontStyle ITALIC
public static final FontStyle UNDER_SCORE
public static final FontStyle REVERSE
public static final FontStyle REVERSE2
public static final FontStyle STRIKETHROUGH
public static FontStyle[] values()
for (FontStyle c : FontStyle.values()) System.out.println(c);
public static FontStyle valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值Copyright © 2023. All rights reserved.