Back to Devexpress

HeatmapControl.ShowRibbonPrintPreviewDialog(Window, String) Method

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

latest2.5 KB
Original Source

HeatmapControl.ShowRibbonPrintPreviewDialog(Window, String) Method

Creates a document that contains the Heatmap Control and displays the Print Preview of the document with a Ribbon toolbar as a modal window. The document name, the Print Preview owner are passed as parameters.

Namespace : DevExpress.Xpf.Charts.Heatmap

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public void ShowRibbonPrintPreviewDialog(
    Window owner,
    string documentName
)
vb
Public Sub ShowRibbonPrintPreviewDialog(
    owner As Window,
    documentName As String
)

Parameters

NameTypeDescription
ownerWindow

The Print Preview’s owner.

| | documentName | String |

The name of the document.

|

Remarks

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

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

See Also

ShowRibbonPrintPreviewDialog(Window)

ShowRibbonPrintPreviewDialog(Window, String, String)

HeatmapControl Class

HeatmapControl Members

DevExpress.Xpf.Charts.Heatmap Namespace