Back to Devexpress

SankeyDiagramControl.ShowRibbonPrintPreview(Window, String, String) Method

wpf-devexpress-dot-xpf-dot-charts-dot-sankey-dot-sankeydiagramcontrol-dot-showribbonprintpreview-x28-system-dot-windows-dot-window-system-dot-string-system-dot-string-x29.md

latest3.5 KB
Original Source

SankeyDiagramControl.ShowRibbonPrintPreview(Window, String, String) Method

Creates a document that contains the Sankey Diagram 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.Sankey

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
sankeyDiagramControl1.ShowRibbonPrintPreview(this, "Sankey Document", "Sankey Print Preview");
vb
sankeyDiagramControl1.ShowRibbonPrintPreview(Me, "Sankey Document", "Sankey Print Preview")

Use the methods below to show the Print Preview with other settings:

NameDescription
ShowPrintPreview(Window, String, String)Creates a document that contains the Sankey Diagram Control and displays the Print Preview of the document.
ShowPrintPreviewDialog(Window, String, String)Creates a document that contains the Sankey Diagram Control and displays the Print Preview of the document as a modal window.
ShowRibbonPrintPreviewDialog(Window, String, String)Creates a document that contains the Sankey Diagram Control and displays the Print Preview of the document with a Ribbon toolbar as a modal window.

See Also

ShowRibbonPrintPreview(Window, String)

ShowRibbonPrintPreview(Window)

SankeyDiagramControl Class

SankeyDiagramControl Members

DevExpress.Xpf.Charts.Sankey Namespace