Back to Devexpress

SankeyDiagramControl.SaveToFile(String) Method

wpf-devexpress-dot-xpf-dot-charts-dot-sankey-dot-sankeydiagramcontrol-dot-savetofile-x28-system-dot-string-x29.md

latest1.9 KB
Original Source

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.Xpf.Charts.Sankey

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public void SaveToFile(
    string fileName
)
vb
Public Sub SaveToFile(
    fileName As String
)

Parameters

NameTypeDescription
fileNameString

The path to the file that stores the layout.

|

Remarks

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

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

The SankeyDiagramControl.LoadFromFile method restores the saved layout.

See Also

LoadFromFile(String)

SankeyDiagramControl Class

SankeyDiagramControl Members

DevExpress.Xpf.Charts.Sankey Namespace