[]
Serializable, Comparable<ThemeColor>, Constable使用此枚举可引用工作簿主题中的颜色,例如浅色和深色、强调色以及超链接颜色。在自定义 Theme 颜色方案或将基于主题的颜色应用于工作簿内容时,可以使用这些常量。
Theme theme = new Theme("customTheme");
theme.getThemeColorScheme().get(ThemeColor.Light1).setRGB(Color.GetAntiqueWhite());
theme.getThemeColorScheme().get(ThemeColor.Accent1).setRGB(Color.GetBlue());
workbook.setTheme(theme);
Enum.EnumDesc<E extends Enum<E>>static ThemeColorforValue(int value) intgetValue()static ThemeColorstatic ThemeColor[]values()name - the name of the enum constant to be returned.IllegalArgumentException - if this enum class has no constant with the specified nameNullPointerException - if the argument is nullvalue - The integer value of the theme color.ThemeColor enum constant associated with the specified value.IllegalArgumentException - if value does not match a defined theme color.