[]
Gets the IThemeColor using ThemeColor.
Use this indexer to access a specific theme color entry, such as Accent1 or Hyperlink, from the current workbook theme color scheme.
IThemeColor this[ThemeColor index] { get; }
ReadOnly Default Property Item(index As ThemeColor) As IThemeColor
| Type | Name | Description |
|---|---|---|
| ThemeColor | index | Specifies the ThemeColor. |
ITheme theme = new Theme("CustomTheme", Themes.Berlin);
workbook.Theme = theme;
IThemeColorScheme colorScheme = theme.ThemeColorScheme;
IThemeColor accent1 = colorScheme[ThemeColor.Accent1];
Color accentColor = accent1.RGB;