Back to Devexpress

DiagramControl.ExportDiagram(Stream, DiagramExportFormat, Nullable<Double>, Nullable<Double>) Method

wpf-devexpress-dot-xpf-dot-diagram-dot-diagramcontrol-dot-exportdiagram-x28-system-dot-io-dot-stream-devexpress-dot-diagram-dot-core-dot-diagramexportformat-system-dot-nullable-system-dot-double-system-dot-nullable-system-dot-double-x29.md

latest3.1 KB
Original Source

DiagramControl.ExportDiagram(Stream, DiagramExportFormat, Nullable<Double>, Nullable<Double>) Method

Exports the diagram to the specified stream.

Namespace : DevExpress.Xpf.Diagram

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

NuGet Package : DevExpress.Wpf.Diagram

Declaration

csharp
public void ExportDiagram(
    Stream stream,
    DiagramExportFormat exportFormat,
    double? dpi = null,
    double? scale = null
)
vb
Public Sub ExportDiagram(
    stream As Stream,
    exportFormat As DiagramExportFormat,
    dpi As Double? = Nothing,
    scale As Double? = Nothing
)

Parameters

NameTypeDescription
streamStream

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

| | exportFormat | DiagramExportFormat |

A DevExpress.Diagram.Core.DiagramExportFormat enumeration value.

|

Optional Parameters

NameTypeDefaultDescription
dpiNullable<Double>null

A double value which represents the resolution (in dpi). The minimum supported value is 1.

| | scale | Nullable<Double> | null |

A double value that specifies the scale factor. Values from 0.1 to 30 are supported.

|

Remarks

The exportFormat parameter only affects which format is selected by default. End-users can select any other available file format in the invoked dialog window.

If the dpi and scale parameters are not specified, the ExportDPI and ExportScale property values are used.

The following file formats are supported: JPG, PNG, GIF, BMP, SVG, PDF.

See Also

ExportToImage

ExportToPdf

ExportToSvg

DiagramControl Class

DiagramControl Members

DevExpress.Xpf.Diagram Namespace