[]
An IThemeColor object describes an individual color entry in a workbook theme color scheme, including the entry's RGB color value and its corresponding ThemeColor entry. Instances are typically obtained from ITheme.getThemeColorScheme() and IThemeColorScheme.get(ThemeColor).
Theme theme = new Theme("CustomTheme", Themes.GetBerlin());
workbook.setTheme(theme);
IThemeColor themeColor = workbook.getTheme().getThemeColorScheme().get(ThemeColor.Accent1);
themeColor.setRGB(Color.GetRed());
Color rgb = themeColor.getRGB();
ThemeColor index = themeColor.getThemeColorSchemeIndex();
getRGB()voidReturns the resolved Color value associated with the current ThemeColor in the workbook theme color scheme.
Theme theme = new Theme("CustomTheme", Themes.GetBerlin());
workbook.setTheme(theme);
IThemeColor themeColor = workbook.getTheme().getThemeColorScheme().get(ThemeColor.Accent1);
Color rgb = themeColor.getRGB();
Sets the resolved Color value associated with the current ThemeColor in the workbook theme color scheme.
Theme theme = new Theme("CustomTheme", Themes.GetBerlin());
workbook.setTheme(theme);
IThemeColor themeColor = workbook.getTheme().getThemeColorScheme().get(ThemeColor.Accent1);
themeColor.setRGB(Color.GetRed());
value - The RGB color of this theme color entry.This value identifies which ThemeColor entry in the owning theme color scheme, such as ThemeColor.Light1 or ThemeColor.Accent1, the current theme color represents.
ITheme theme = new Theme("CustomTheme");
IThemeColor themeColor = theme.getThemeColorScheme().get(ThemeColor.Accent1);
ThemeColor index = themeColor.getThemeColorSchemeIndex();
ThemeColor value that identifies this theme color within the theme color scheme.