Class FileManager
File management utility geared towards RadDiagram.
Inheritance
Namespace: Telerik.Windows.Controls.Diagrams.Extensions
Assembly: Telerik.Windows.Controls.Diagrams.Extensions.dll
Syntax
public class FileManager : Object
Constructors
FileManager(RadDiagram)
Initializes a new instance of the FileManager class.
Declaration
public FileManager(RadDiagram diagram)
Parameters
RadDiagram
diagram
The diagram. |
Properties
CurrentFile
Gets or sets the current file path.
Declaration
public string CurrentFile { get; set; }
Property Value
System.String
The current file. |
Methods
LoadFromFile(FileLocation, Action)
Loads the diagram from file.
Declaration
public void LoadFromFile(FileLocation location, Action previewActionOnLoad = null)
Parameters
FileLocation
location
Specifies the type location of the file to open - file system or isolated storage. |
System.Action
previewActionOnLoad
Action to be executed first on OK button click of the System.Windows.Controls.OpenFileDialog |
SaveToFile(FileLocation)
Saves the diagram to file.
Declaration
public void SaveToFile(FileLocation location)
Parameters
FileLocation
location
The location. |