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.v25.2.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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the LoadDocument(String) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also