[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IThemeColorScheme.Item

this Property

this[ThemeColor]

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.

Declaration
IThemeColor this[ThemeColor index] { get; }
ReadOnly Default Property Item(index As ThemeColor) As IThemeColor
Parameters
Type Name Description
ThemeColor index

Specifies the ThemeColor. null is allowed.

Examples
ITheme theme = new Theme("CustomTheme", Themes.Berlin);
workbook.Theme = theme;
IThemeColorScheme colorScheme = theme.ThemeColorScheme;
IThemeColor accent1 = colorScheme[ThemeColor.Accent1];
Color accentColor = accent1.RGB;