ActiveReports 19 .NET Edition
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

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

    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