MESCIUS.ActiveReports.Core.Rdl Assembly / GrapeCity.ActiveReports.Rdl.Themes Namespace / XmlThemeReader Class / ReadTheme(FileInfo) Method
The System.IO.FileInfo object representing the file that contains the theme.
Example

ReadTheme(FileInfo) Method
Reads a theme from the specified file.
Syntax
'Declaration
 
Public Shared Function ReadTheme( _
   ByVal themefileInfo As FileInfo _
) As Theme
 

Parameters

themefileInfo
The System.IO.FileInfo object representing the file that contains the theme.

Return Value

A Theme object representing the parsed theme.
Exceptions
ExceptionDescription
Thrown if the specified file does not exist.
Thrown if an I/O error occurs while opening the file.
Example
var themeFileInfo = new FileInfo("path/to/theme.rdlx-theme");
var theme = XmlThemeReader.ReadTheme(themeFileInfo);
See Also