Skip to main content

DiagramControl.SaveDocument(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 to the specified file.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v26.1.dll

NuGet Package: DevExpress.Win.Diagram

Declaration

public void SaveDocument(
    string fileName
)

Parameters

Name Type Description
fileName String

The full path to the file where the diagram will be saved.

Remarks

To load a saved diagram, use DiagramControl.LoadDocument.

See Also