Exago .NET API Documentation
GetTheme Method
Example 
WebReports.Api.Theme Namespace > ReportTheme Class : GetTheme Method
The PageInfo object
The type of theme to retrieve, one of the ReportTheme.ReportThemeType Enumeration members.
The name of the theme to retrieve.
Retrieve a theme from the Storage Management database, based on the provided theme type and theme name. The returned string can be cast to the corresponding theme type: either ColorTheme Class for chart, gauge or map themes; CrossTabReportTheme Class for CrossTab themes; ExpressReportTheme Class for Express Report themes (deprecated); ExpressViewTheme Class for ExpressView themes.
Syntax
public static ReportTheme GetTheme( 
   PageInfo pageInfo,
   ReportTheme.ReportThemeType type,
   System.string theme
)

Parameters

pageInfo
The PageInfo object
type
The type of theme to retrieve, one of the ReportTheme.ReportThemeType Enumeration members.
theme
The name of the theme to retrieve.

Return Value

The theme, or null if no such theme exists
Example
Retrieve the new ExpressView (v2021.1+) theme "Lava Splash"
ExpressViewTheme evTheme = (ExpressViewTheme)ReportTheme.GetTheme(api.PageInfo,ReportTheme.ReportThemeType.ExpressView_v2, "Lava Splash");
See Also

Reference

ReportTheme Class
ReportTheme Members