SankeyDiagramControl.SaveToFile(String) Method
SECURITY-RELATED CONSIDERATIONS
Using file paths sourced from untrusted input may expose unauthorized files or allow unintended file access. Always validate and normalize all external paths to prevent path manipulation.
Saves the diagram’s layout to an XML file.
Namespace: DevExpress.XtraCharts.Sankey
Assembly: DevExpress.XtraCharts.v25.2.UI.dll
NuGet Package: DevExpress.Win.Charts
Declaration
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