All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

SankeyDiagramControl.SaveToFile(String) Method

Saves the diagram's layout to an XML file.

Namespace: DevExpress.XtraCharts.Sankey

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

Declaration

public void SaveToFile(
    string path
)
Public Sub SaveToFile(
    path As String
)

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