Skip to main content
All docs
V24.2

SankeyDiagramControl.SaveToFile(String) Method

Saves the diagram’s layout to an XML file.

Namespace: DevExpress.XtraCharts.Sankey

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

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