Back to Devexpress

DiagramControl.ExportToPdf(Stream, Nullable<Rect>, PdfExportOptions) Method

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

latest2.6 KB
Original Source

DiagramControl.ExportToPdf(Stream, Nullable<Rect>, PdfExportOptions) Method

Exports the diagram to a single-page PDF document which is sent to the specified stream.

Namespace : DevExpress.Xpf.Diagram

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

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public void ExportToPdf(
    Stream stream,
    Rect? exportBounds = null,
    PdfExportOptions options = null
)
vb
Public Sub ExportToPdf(
    stream As Stream,
    exportBounds As Rect? = Nothing,
    options As PdfExportOptions = Nothing
)

Parameters

NameTypeDescription
streamStream

A System.IO.Stream object to which the created PDF file should be sent.

|

Optional Parameters

NameTypeDefaultDescription
exportBoundsNullable<Rect>null

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

| | options | PdfExportOptions | null |

The options that define how a document is exported.

|

Remarks

If the options parameter is not specified, the DiagramControl.PdfExportOptions property value is used.

If the exportBounds parameter is not specified, the DiagramControl.PrintExportMode and DiagramControl.ExportMargin property values are used.

Use the PrintToPdf method to export the diagram to a multi-page PDF document.

See Also

DiagramControl Class

DiagramControl Members

DevExpress.Xpf.Diagram Namespace