[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Themes.Item

this Property

this[string]

Gets the theme with the specified name.

This method searches built-in themes first and then searches custom themes added to this Themes collection. Theme name matching is case-insensitive, and leading and trailing whitespace in name are ignored.

Declaration
public ITheme this[string name] { get; }
Public ReadOnly Default Property Item(name As String) As ITheme
Parameters
Type Name Description
string name

The theme name to search for. Must not be null; leading and trailing whitespace is ignored.

Examples
Themes themes = new Themes();
ITheme theme = themes[Themes.Berlin.Name];
workbook.Theme = theme;