[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Themes.Add

Add Method

Add(string, ITheme)

Creates a new theme based on the given theme; if the given theme is null (Nothing in Visual Basic), then the theme is based on the office theme.

Declaration
public ITheme Add(string themeName, ITheme baseTheme = null)
Public Function Add(themeName As String, Optional baseTheme As ITheme = Nothing) As ITheme
Parameters
Type Name Description
string themeName

The new theme name.

ITheme baseTheme

The theme name the theme is based on.

Returns
Type Description
ITheme

Returns the new ITheme.

Remarks

This method is now obsolete. Theme constructor is now recommended.