[]
Specifies the built-in theme colors in their displayed order.
Use this enumeration to refer to colors in a workbook theme, such as light and dark colors, accent colors, and hyperlink colors. These constants can be used when customizing a Theme color scheme or when applying a theme-based color to workbook content.
public enum ThemeColor
Public Enum ThemeColor
ITheme theme = new Theme("customTheme", Themes.Berlin);
theme.ThemeColorScheme[ThemeColor.Light1].RGB = Color.AntiqueWhite;
theme.ThemeColorScheme[ThemeColor.Accent1].RGB = Color.Blue;
workbook.Theme = theme;
| Name | Description |
|---|---|
| Accent1 | Specifies the accent1 theme color. |
| Accent2 | Specifies the accent2 theme color. |
| Accent3 | Specifies the accent3 theme color. |
| Accent4 | Specifies the accent4 theme color. |
| Accent5 | Specifies the accent5 theme color. |
| Accent6 | Specifies the accent6 theme color. |
| Dark1 | Specifies the Dark 1 theme color. |
| Dark2 | Specifies the Dark 2 theme color. |
| FollowedHyperlink | Specifies the followed hyperlink theme color. |
| Hyperlink | Specifies the hyperlink theme color. |
| Light1 | Specifies the Light 1 theme color. |
| Light2 | Specifies the Light 2 theme color. |
| None | Specifies to not use any theme color. |