DashboardDesigner.ExportDashboardItemToImage(String, String, DashboardImageExportOptions) Method

Exports the dashboard item to the image file using the specified image options.

Namespace: DevExpress.DashboardWin

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

Declaration

public void ExportDashboardItemToImage(
    string dashboardItemName,
    string filePath,
    DashboardImageExportOptions options
)
Public Sub ExportDashboardItemToImage(
    dashboardItemName As String,
    filePath As String,
    options As DashboardImageExportOptions
)

Parameters

Type Name Description
String dashboardItemName

A String that is the component name of the dashboard item to be exported.

String filePath

A String that specifies the path to the image file.

DashboardImageExportOptions options

A DashboardImageExportOptions object that specifies the image export options to be applied when the dashboard item is exported.

Examples

The following code snippet shows how to export the Chart dashboard item displayed within the DashboardDesigner using the DashboardDesigner.ExportDashboardItemToImage method with specific image-export options specified.

using DevExpress.DashboardCommon;
// ...
            dashboardDesigner1.ExportDashboardItemToImage("chartDashboardItem1", @"c:\temp\ExportedImage.jpg", new DashboardImageExportOptions() {
                    Format = DashboardExportImageFormat.Jpeg,
                    ScaleFactor = 1.5f
                }
            );
See Also