Back to Devexpress

SankeyDiagramControl.OptionsPrint Property

windowsforms-devexpress-dot-xtracharts-dot-sankey-dot-sankeydiagramcontrol-161ea95a.md

latest3.2 KB
Original Source

SankeyDiagramControl.OptionsPrint Property

Provides access to the diagram’s print options.

Namespace : DevExpress.XtraCharts.Sankey

Assembly : DevExpress.XtraCharts.v25.2.UI.dll

NuGet Package : DevExpress.Win.Charts

Declaration

csharp
[DXCategory("Behavior")]
public SankeyOptionsPrint OptionsPrint { get; }
vb
<DXCategory("Behavior")>
Public ReadOnly Property OptionsPrint As SankeyOptionsPrint

Property Value

TypeDescription
SankeyOptionsPrint

Contains print options for the diagram.

|

Remarks

Use the OptionsPrint property to customize the control’s print settings, for example, the format of the resulting diagram image.

To print the control, use one of the methods below:

The following methods allow you to export the control to different formats:

The code below sets the resulting Sankey diagram image’s width to the document width and exports a Sankey diagram to a PDF file:

csharp
sankeyDiagramControl1.OptionsPrint.SizeMode = DevExpress.XtraCharts.Printing.PrintSizeMode.Zoom;
sankeyDiagramControl1.ExportToPdf("D://sankey.pdf");
vb
sankeyDiagramControl1.OptionsPrint.SizeMode = DevExpress.XtraCharts.Printing.PrintSizeMode.Zoom
sankeyDiagramControl1.ExportToPdf("D://sankey.pdf")

See Also

SankeyDiagramControl Class

SankeyDiagramControl Members

DevExpress.XtraCharts.Sankey Namespace