windowsforms-devexpress-dot-xtracharts-dot-sankey-dot-sankeydiagramcontrol-161ea95a.md
Provides access to the diagram’s print options.
Namespace : DevExpress.XtraCharts.Sankey
Assembly : DevExpress.XtraCharts.v25.2.UI.dll
NuGet Package : DevExpress.Win.Charts
[DXCategory("Behavior")]
public SankeyOptionsPrint OptionsPrint { get; }
<DXCategory("Behavior")>
Public ReadOnly Property OptionsPrint As SankeyOptionsPrint
| Type | Description |
|---|---|
| SankeyOptionsPrint |
Contains print options for the diagram.
|
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:
sankeyDiagramControl1.OptionsPrint.SizeMode = DevExpress.XtraCharts.Printing.PrintSizeMode.Zoom;
sankeyDiagramControl1.ExportToPdf("D://sankey.pdf");
sankeyDiagramControl1.OptionsPrint.SizeMode = DevExpress.XtraCharts.Printing.PrintSizeMode.Zoom
sankeyDiagramControl1.ExportToPdf("D://sankey.pdf")
See Also