Back to Devexpress

DiagramControl.ExportToPdf(Rect, PdfExportOptions, Boolean) Method

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcontrol-dot-exporttopdf-x28-system-dot-windows-dot-rect-devexpress-dot-xtraprinting-dot-pdfexportoptions-system-dot-boolean-x29.md

latest2.0 KB
Original Source

DiagramControl.ExportToPdf(Rect, PdfExportOptions, Boolean) Method

Exports the diagram to a single-page PDF file specified by the user in the invoked dialog window.

Namespace : DevExpress.Xpf.Diagram

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

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public void ExportToPdf(
    Rect exportBounds,
    PdfExportOptions options = null,
    bool showOptionsDialog = false
)
vb
Public Sub ExportToPdf(
    exportBounds As Rect,
    options As PdfExportOptions = Nothing,
    showOptionsDialog As Boolean = False
)

Parameters

NameTypeDescription
exportBoundsRect

A System.Windows.Rect object specifying the rectangle which encompasses the total background area when exporting the diagram.

|

Optional Parameters

NameTypeDefaultDescription
optionsPdfExportOptionsnull

The options that define how a document is exported.

| | showOptionsDialog | Boolean | False |

true, to show the dialog window that allows the user to configure export options; otherwise, false. By default, false.

|

See Also

DiagramControl Class

DiagramControl Members

DevExpress.Xpf.Diagram Namespace