Back to Devexpress

DashboardImageExportOptions Class

dashboard-devexpress-dot-dashboardcommon-2c3e1f43.md

latest5.7 KB
Original Source

DashboardImageExportOptions Class

Contains options related to exporting a dashboard/dashboard item to an image.

Namespace : DevExpress.DashboardCommon

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

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public class DashboardImageExportOptions :
    IDashboardImageExportOptions,
    IDashboardExportOptions
vb
Public Class DashboardImageExportOptions
    Implements IDashboardImageExportOptions,
               IDashboardExportOptions

The following members return DashboardImageExportOptions objects:

Remarks

The following properties allow you to access default image-specific export options for different controls.

Moreover, you can specify image options when exporting a dashboard/dashboard item using the following methods.

Note

To export a dashboard/dashboard item on the web using an API, use the ExportToImage and ExportDashboardItemToImage methods exposed by the ASPxClientDashboard class.

Example

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.

csharp
using DevExpress.DashboardCommon;
// ...
            dashboardDesigner1.ExportDashboardItemToImage("chartDashboardItem1", @"c:\temp\ExportedImage.jpg", new DashboardImageExportOptions() {
                    Format = DashboardExportImageFormat.Jpeg,
                    ScaleFactor = 1.5f
                }
            );
vb
Imports DevExpress.DashboardCommon
' ...
            dashboardDesigner1.ExportDashboardItemToImage("chartDashboardItem1", "c:\temp\ExportedImage.jpg", New DashboardImageExportOptions() With { _
                Key .Format = DashboardExportImageFormat.Jpeg, _
                Key .ScaleFactor = 1.5F _
            })

Inheritance

Object DashboardImageExportOptions

See Also

DashboardImageExportOptions Members

DevExpress.DashboardCommon Namespace