Back to Devexpress

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

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

latest3.1 KB
Original Source

DiagramControl.ExportDiagram(Stream, DiagramExportFormat, Rect, 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,
    Rect exportBounds,
    double? dpi = null,
    double? scale = null
)
vb
Public Sub ExportDiagram(
    stream As Stream,
    exportFormat As DiagramExportFormat,
    exportBounds As Rect,
    dpi As Double? = Nothing,
    scale As Double? = Nothing
)

Parameters

NameTypeDescription
streamStream

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

| | exportFormat | DiagramExportFormat |

A DevExpress.Diagram.Core.DiagramExportFormat enumeration value.

| | exportBounds | Rect |

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

|

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

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

See Also

ExportToImage

ExportToPdf

ExportToSvg

DiagramControl Class

DiagramControl Members

DevExpress.Xpf.Diagram Namespace