Serializable, Comparable<RichStyle.TypeId>public static enum RichStyle.TypeId extends Enum<RichStyle.TypeId>
You can search for, delete, and iterate operations in the rich text based on TypeId. You can
customize rich styles only by using TypeId#CUSTOM_RICH_STYLE.
| 枚举常量 | 说明 |
|---|---|
ALIGNMENT_RICH_STYLE |
Indicates the type ID of the paragraph alignment rich style.
|
BACKGROUND_COLOR_RICH_STYLE |
Indicates the type ID of the background color rich style.
|
CLICK_RICH_STYLE |
Indicates the type ID of the click event rich style.
|
FONT_RICH_STYLE |
Indicates the type ID of the font rich style.
|
FONT_SIZE_RICH_STYLE |
Indicates the type ID of the font size rich style.
|
FOREGROUND_COLOR_RICH_STYLE |
Indicates the type ID of the foreground color rich style.
|
HORIZONTAL_SCALE_RICH_STYLE |
Indicates the type ID of the horizontal text scaling rich style.
|
IMAGE_RICH_STYLE |
Indicates the type ID of the image rich style.
|
INDENT_RICH_STYLE |
Indicates the type ID of the paragraph indentation rich style.
|
LINE_BACKGROUND_RICH_STYLE |
Indicates the type ID of the line background rich style.
|
LINE_HEIGHT_RICH_STYLE |
Indicates the type ID of the line height rich style.
|
STRIKETHROUGH_RICH_STYLE |
Indicates the type ID of the strikethrough rich style.
|
SUBSCRIPT_RICH_STYLE |
Indicates the type ID of the subscript rich style.
|
SUPERSCRIPT_RICH_STYLE |
Indicates the type ID of the superscript rich style.
|
TAB_STOPS_RICH_STYLE |
Indicates the type ID of the tab stop rich style.
|
UNDERLINE_RICH_STYLE |
Indicates the type ID of the underline rich style.
|
UNKNOWN |
Indicates an unknown ID.
|
URL_RICH_STYLE |
Indicates the type ID of the hyperlink rich style.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static RichStyle.TypeId |
getByInt(int enumInt) |
Obtains the enumeration object according to an enumeration value.
|
int |
getValue() |
Obtains the value of this
TypeId instance. |
static RichStyle.TypeId |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static RichStyle.TypeId[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (RichStyle.TypeId c : RichStyle.TypeId.values()) System.out.println(c); |
public static final RichStyle.TypeId UNKNOWN
public static final RichStyle.TypeId BACKGROUND_COLOR_RICH_STYLE
public static final RichStyle.TypeId FONT_RICH_STYLE
public static final RichStyle.TypeId FONT_SIZE_RICH_STYLE
public static final RichStyle.TypeId FOREGROUND_COLOR_RICH_STYLE
public static final RichStyle.TypeId IMAGE_RICH_STYLE
public static final RichStyle.TypeId HORIZONTAL_SCALE_RICH_STYLE
public static final RichStyle.TypeId STRIKETHROUGH_RICH_STYLE
public static final RichStyle.TypeId SUBSCRIPT_RICH_STYLE
public static final RichStyle.TypeId SUPERSCRIPT_RICH_STYLE
public static final RichStyle.TypeId UNDERLINE_RICH_STYLE
public static final RichStyle.TypeId URL_RICH_STYLE
public static final RichStyle.TypeId CLICK_RICH_STYLE
public static final RichStyle.TypeId ALIGNMENT_RICH_STYLE
public static final RichStyle.TypeId INDENT_RICH_STYLE
public static final RichStyle.TypeId LINE_HEIGHT_RICH_STYLE
public static final RichStyle.TypeId LINE_BACKGROUND_RICH_STYLE
public static final RichStyle.TypeId TAB_STOPS_RICH_STYLE
public static RichStyle.TypeId[] values()
for (RichStyle.TypeId c : RichStyle.TypeId.values()) System.out.println(c);
public static RichStyle.TypeId valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getValue()
TypeId instance.public static RichStyle.TypeId getByInt(int enumInt)
enumInt - Indicates the enumeration value.