Back to Devexpress

HeatmapPrintOptions.SizeMode Property

wpf-devexpress-dot-xpf-dot-charts-dot-heatmap-dot-heatmapprintoptions.md

latest3.0 KB
Original Source

HeatmapPrintOptions.SizeMode Property

Specifies the size mode used to print the heatmap.

Namespace : DevExpress.Xpf.Charts.Heatmap

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public PrintSizeMode SizeMode { get; set; }
vb
Public Property SizeMode As PrintSizeMode

Property Value

TypeDescription
PrintSizeMode

The size mode.

|

Available values:

NameDescription
None

A chart is printed with its size identical to that shown on the printed page.

| | Stretch |

A chart is stretched or shrunk to fit the page on which it is printed.

| | NonProportionalZoom |

A chart is resized non-proportionally, so that it scales in the horizontal or the vertical directions independently.

| | ProportionalZoom |

A chart is resized proportionally (without clipping), so that it best fits the page on which it is printed

|

Property Paths

You can access this nested property as listed below:

Object TypePath to SizeMode
HeatmapControl

.PrintOptions .SizeMode

|

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

HeatmapPrintOptions Class

HeatmapPrintOptions Members

DevExpress.Xpf.Charts.Heatmap Namespace