[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.ITheme

ITheme Interface

Contains the theme information.

An ITheme describes a workbook theme, including its name, whether it is built in, and the associated IThemeColorScheme and IThemeFontScheme.

Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public interface ITheme
Public Interface ITheme
Examples
ITheme theme = new Theme("Custom Theme", Themes.Berlin);
string name = theme.Name;
bool builtIn = theme.IsBuiltIn;
IThemeColorScheme colorScheme = theme.ThemeColorScheme;
IThemeFontScheme fontScheme = theme.ThemeFontScheme;

Properties

Name Description
IsBuiltIn

Gets whether the theme is a built-in theme.

Built-in themes are the predefined themes returned by the Themes utility methods. Custom themes created programmatically return false.

Name

Gets the name of the theme.

The returned name identifies the current theme and can be used to look up a theme from the Themes collection.

ThemeColorScheme

Gets the color scheme within the theme.

Represents a color scheme within the theme and provides access to the theme colors by IThemeColor.

ThemeFontScheme

Gets the font scheme within the theme.

Represents the theme font scheme and provides access to the major and minor theme font collections through Major and Minor.