BeforeExportDocumentEventArgs.HideItem(String) Method

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

Namespace: DevExpress.DashboardCommon

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


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


Type Name Description
String itemComponentName

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


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.

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