Skip to main content

DiagramControl.LoadDocument(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.

Loads a diagram stored in the specified file.

Namespace: DevExpress.XtraDiagram

Assembly: DevExpress.XtraDiagram.v26.1.dll

NuGet Package: DevExpress.Win.Diagram

Declaration

public void LoadDocument(
    string fileName
)

Parameters

Name Type Description
fileName String

The full path to the file that stores the diagram to be loaded.

Remarks

A diagram can be saved to a file or stream with the DiagramControl.SaveDocument method.

See Also