[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Rdl.Themes.XmlThemeReader.ReadTheme

ReadTheme Method

ReadTheme(FileInfo)

Reads a theme from the specified file.

Declaration
public static Theme ReadTheme(FileInfo themefileInfo)
Parameters
Type Name Description
FileInfo themefileInfo

The FileInfo object representing the file that contains the theme.

Returns
Type Description
Theme

A Theme object representing the parsed theme.

Examples
var themeFileInfo = new FileInfo("path/to/theme.rdlx-theme");
var theme = XmlThemeReader.ReadTheme(themeFileInfo);
Exceptions
Type Condition
FileNotFoundException

Thrown if the specified file does not exist.

IOException

Thrown if an I/O error occurs while opening the file.