Back to Devexpress

HeatmapControl.PrintOptions Property

wpf-devexpress-dot-xpf-dot-charts-dot-heatmap-dot-heatmapcontrol-37e9c91b.md

latest3.8 KB
Original Source

HeatmapControl.PrintOptions Property

Gets or sets the Heatmap Control’s print options.

Namespace : DevExpress.Xpf.Charts.Heatmap

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public HeatmapPrintOptions PrintOptions { get; set; }
vb
Public Property PrintOptions As HeatmapPrintOptions

Property Value

TypeDescription
HeatmapPrintOptions

Contains options that are applied to the heatmap when it is printed or exported.

|

Remarks

Use one of the methods below to print the Heatmap control:

The following methods allow you to export the Heatmap control to different formats:

Example

The following code exports a heatmap to a PDF file:

xaml
<dxh:HeatmapControl x:Name="heatmap">
    <dxh:HeatmapControl.PrintOptions>
        <dxh:HeatmapPrintOptions SizeMode="ProportionalZoom" />
    </dxh:HeatmapControl.PrintOptions>
</dxh:HeatmapControl>
csharp
using DevExpress.XtraPrinting;

    private void SimpleButton_Click(object sender, RoutedEventArgs e) {
        PdfExportOptions exportOptions = new PdfExportOptions();
        exportOptions.ConvertImagesToJpeg = false;
        exportOptions.DocumentOptions.Title = "Sales by Categories";
        heatmap.ExportToPdf("D://heatmap-export.pdf", exportOptions);
    }
vb
Imports DevExpress.XtraPrinting

    Private Sub SimpleButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
        Dim exportOptions As PdfExportOptions = New PdfExportOptions()
        exportOptions.ConvertImagesToJpeg = False
        exportOptions.DocumentOptions.Title = "Sales by Categories"
        heatmap.ExportToPdf("D://heatmap-export.pdf", exportOptions)
    End Sub

See Also

HeatmapControl Class

HeatmapControl Members

DevExpress.Xpf.Charts.Heatmap Namespace