Search
Diagram.LoadFromFile Method
See Also
 





Loads the contents of an existing diagram file into the control.

Namespace: MindFusion.Diagramming
Package: MindFusion.Diagramming

 Syntax

C#  Copy Code

public void LoadFromFile (
    string fileName
)

Visual Basic  Copy Code

Public Sub LoadFromFile( _
    fileName As String _
)

 Parameters

fileName
The name of the file the data shall be read from.

 Remarks

The method reads previously saved diagram. It is implemented by creating a stream on the input file, then invoking the LoadFromStream method. It throws a FileLoadException if the file given as argument does not adhere to the proper format. Diagrams can be saved in a file using the SaveToFile method.

 See Also