Back to Devexpress

HeatmapControl.ShowPrintPreviewDialog(Window) Method

wpf-devexpress-dot-xpf-dot-charts-dot-heatmap-dot-heatmapcontrol-dot-showprintpreviewdialog-x28-system-dot-windows-dot-window-x29.md

latest2.1 KB
Original Source

HeatmapControl.ShowPrintPreviewDialog(Window) Method

Creates a document that contains the Heatmap Control and displays the Print Preview as a modal window. The Print Preview owner is passed as a parameter.

Namespace : DevExpress.Xpf.Charts.Heatmap

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public void ShowPrintPreviewDialog(
    Window owner
)
vb
Public Sub ShowPrintPreviewDialog(
    owner As Window
)

Parameters

NameTypeDescription
ownerWindow

The Print Preview’s owner.

|

Remarks

The following example uses the ShowPrintPreviewDialog method to display the Print Preview:

csharp
private void SimpleButton_Click(object sender, RoutedEventArgs e) {
    heatmapControl.ShowPrintPreviewDialog(this);
}
vb
Private Sub SimpleButton_Click(ByVal sender As Object, ByVal e As RoutedEventArgs)
    heatmapControl.ShowPrintPreviewDialog(Me)
End Sub

See Also

ShowPrintPreviewDialog(Window, String)

ShowPrintPreviewDialog(Window, String, String)

HeatmapControl Class

HeatmapControl Members

DevExpress.Xpf.Charts.Heatmap Namespace