BeforeExportDocumentEventArgs.HideItem(String) Method

Hides the dashboard item with the specified name in the exported dashboard.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v18.1.Core.dll

Declaration

public void HideItem(
    string itemComponentName
)
Public Sub HideItem(
    itemComponentName As String
)

Parameters

Type Name Description
String itemComponentName

A String that specifies the component name of the dashboard item to hide.

Examples

The code snippet below shows how to hide specific dashboard items from the printed or exported document using the DashboardDesigner.BeforeExportDocument event.

        private void dashboardDesigner_BeforeExportDocument(object sender, DevExpress.DashboardCommon.BeforeExportDocumentEventArgs e) {
            // Hides a dashboard item with the specified name from the printed/exported document.
            e.HideItem("gridDashboardItem1");

            // Hides all filter elements from the printed/exported document.
            e.HideItem((DashboardItem item) => item is FilterElementDashboardItem);
        }