Skip to main content
A newer version of this page is available. .
All docs
V20.2

SankeyDiagramControl.SaveToFile(String) Method

Saves the diagram’s layout to an XML file.

Namespace: DevExpress.Xpf.Charts.Sankey

Assembly: DevExpress.Xpf.Charts.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Charts, DevExpress.Wpf.Charts

Declaration

public void SaveToFile(
    string fileName
)

Parameters

Name Type Description
fileName String

The path to the file that stores the layout.

Remarks

Use the following code to save the diagram’s layout to an XML file:

sankeyDiagramControl1.SaveToFile("D:/temp/SankeyLayout.xml");

The SankeyDiagramControl.LoadFromFile method restores the saved layout.

See Also