[]
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.
public ITheme this[string name] { get; }
Public ReadOnly Default Property Item(name As String) As ITheme
| Type | Name | Description |
|---|---|---|
| string | name | The theme name to search for. Must not be |
Themes themes = new Themes();
ITheme theme = themes[Themes.Berlin.Name];
workbook.Theme = theme;