[]
Represents the theme color information.
An IThemeColor object describes a 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
ThemeColorScheme and this[ThemeColor].
public interface IThemeColor
Public Interface IThemeColor
ITheme theme = new Theme("CustomTheme", Themes.Berlin);
workbook.Theme = theme;
IThemeColor themeColor = theme.ThemeColorScheme[ThemeColor.Accent1];
themeColor.RGB = Color.Red;
Color rgb = themeColor.RGB;
ThemeColor index = themeColor.ThemeColorSchemeIndex;
| Name | Description |
|---|---|
| RGB | Gets or sets the RGB color of this theme color entry. This property uses the resolved Color value associated with the current ThemeColor in the workbook theme color scheme. |
| ThemeColorSchemeIndex | Gets the theme color scheme index. This value identifies which ThemeColor entry in the owning theme color scheme, such as Light1 or Accent1, the current theme color represents. |