combit List & Label 27 - .NET Help
combit.Reporting.Web Namespace / WebReportViewerTheme Class
Members


In This Topic
    WebReportViewerTheme Class
    In This Topic
    Initializes a new instance of the WebReportViewerTheme class that contains the default theme for the Web Report Viewer. The theme can be applied by setting the "theme"-property of the Web Report Viewer component to the serialized JSON or by using the @Html.WebReportViewer helper.
    Object Model
    WebReportViewerTheme ClassWebReportViewerThemeButton ClassWebReportViewerThemeColors ClassWebReportViewerThemeMessageColors ClassWebReportViewerThemeSize Class
    Syntax
    'Declaration
     
    
    Public Class WebReportViewerTheme 
    public class WebReportViewerTheme 
    public ref class WebReportViewerTheme 
    Example
    @{
        var theme = new WebReportViewerTheme();
    
        theme.Colors.NavigationColor = "#495057";
        theme.Colors.NavigationBorderColor = "#495057";
        theme.Colors.NavigationColorSelected = "#343a40";
        theme.Colors.NavigationColorHover = "#6c757d";
        theme.Colors.SideBarColor = "#495057";
    }
     
    @Html.WebReportViewer("Vorschau", projectId, theme: theme);
    
      
    <ll-webreportviewer
    backendUrl="https://example.com/WebReportViewer"
    defaultProject="57956062-8D88-4233-8187-673B27B12001"
    theme="{'Colors':{
            'NavigationColor':'#495057',
            'NavigationBorderColor':'#495057',
            'NavigationColorSelected':'#343a40',
            NavigationColorHover':'#6c757d',
            'SideBarColor':'#495057'
            }}"
    >
    </ll-webreportviewer>
    
    Inheritance Hierarchy

    System.Object
       combit.Reporting.Web.WebReportViewerTheme

    Requirements

    Platforms: Windows 8.1, Windows 10 (Version 1909 - 21H2), Windows 11 (21H2), Windows Server 2012 - 2022

    See Also