Back to Devexpress

HeatmapControl.ShowRibbonPrintPreview(Window, String, String) Method

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

latest2.3 KB
Original Source

HeatmapControl.ShowRibbonPrintPreview(Window, String, String) Method

Creates a document that contains the Heatmap Control and displays the Print Preview of the document with a Ribbon toolbar. The document name, the Print Preview owner, and title 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 ShowRibbonPrintPreview(
    Window owner,
    string documentName,
    string title
)
vb
Public Sub ShowRibbonPrintPreview(
    owner As Window,
    documentName As String,
    title As String
)

Parameters

NameTypeDescription
ownerWindow

The Print Preview’s owner.

| | documentName | String |

The name of the document.

| | title | String |

The Print Preview title.

|

Remarks

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

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

See Also

HeatmapControl Class

HeatmapControl Members

DevExpress.Xpf.Charts.Heatmap Namespace