Unplanned
Last Updated: 25 Mar 2020 09:10 by ADMIN
Todd Bannar
Created on: 25 Mar 2020 09:07
Category: SpreadProcessing
Type: Feature Request
0
SpreadProcessing: Provide an API for getting a predefined theme by name
Currently, this could be achieved this way:
string themeName = "Office";
ThemeFontScheme themeFontScheme = PredefinedThemeSchemes.FontSchemes.FirstOrDefault(x => x.Name == themeName);
ThemeColorScheme themeColors = PredefinedThemeSchemes.ColorSchemes.FirstOrDefault(x => x.Name == themeName);
DocumentTheme theme = new DocumentTheme(themeName, themeColors, themeFontScheme);
0 comments