[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.IThemeColorScheme

IThemeColorScheme Interface

Represents the theme color scheme.

This interface provides access to individual color entries in a theme, such as light, dark, accent, and hyperlink colors. Use this[ThemeColor] to get a specified theme color entry.

Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public interface IThemeColorScheme
Public Interface IThemeColorScheme
Examples
ITheme theme = new Theme("CustomTheme", Themes.Berlin);
workbook.Theme = theme;
IThemeColorScheme colorScheme = theme.ThemeColorScheme;
IThemeColor accent1 = colorScheme[ThemeColor.Accent1];
accent1.RGB = Color.Red;

Properties

Name Description
Count

Gets the number of theme color entries in this theme color scheme.

This value indicates how many theme color entries are available in the current IThemeColorScheme collection.

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.