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

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

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v21.2.dll

Declaration

public void ExportToPdf(
    Stream stream,
    RectangleF? exportBounds = default(RectangleF? ),
    PdfExportOptions options = null
)

Parameters

Name Type Description
stream Stream

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

Optional Parameters

Name Type Default Description
exportBounds Nullable<RectangleF>

null

A System.Drawing.RectangleF object specifying the rectangle which encompasses the total background area when printing the diagram.

options PdfExportOptions

null

The options that define how a document is exported.

Remarks

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

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

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

See Also