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

SankeyDiagramControl.SaveToFile(String) Method

Saves the diagram’s layout to an XML file.

Namespace: DevExpress.XtraCharts.Sankey

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

NuGet Packages: DevExpress.Win.Charts, DevExpress.Win.Design

Declaration

public void SaveToFile(
    string path
)

Parameters

Name Type Description
path String

A path to a file that stores the layout. If an empty string is specified, an exception is raised.

Remarks

The SaveToFile method saves the diagram’s layout to an XML file. You can use the ChartControl.LoadFromFile method to restore the saved layout.

private void Form1_Load(object sender, EventArgs e) {
    sankeyDiagramControl1.SaveToFile("D:\\diagram.xml");
}
See Also