Class
FileManager

File management utility geared towards RadDiagram.

Definition

Namespace:Telerik.Windows.Controls.Diagrams.Extensions

Assembly:Telerik.Windows.Controls.Diagrams.Extensions.dll

Syntax:

cs-api-definition
public class FileManager

Inheritance: objectFileManager

Constructors

FileManager(RadDiagram)

Initializes a new instance of the FileManager class.

Declaration

cs-api-definition
public FileManager(RadDiagram diagram)

Parameters

diagram

RadDiagram

The diagram.

Properties

CurrentFile

Gets or sets the current file path.

Declaration

cs-api-definition
public string CurrentFile { get; set; }

Property Value

string

The current file.

Methods

LoadFromFile(FileLocation, Action)

Loads the diagram from file.

Declaration

cs-api-definition
public void LoadFromFile(FileLocation location = FileLocation.Disk, Action previewActionOnLoad = null)

Parameters

location

FileLocation

Specifies the type location of the file to open - file system or isolated storage.

previewActionOnLoad

Action

Action to be executed first on OK button click of the

SaveToFile(FileLocation)

Saves the diagram to file.

Declaration

cs-api-definition
[SuppressMessage("Microsoft.Reliability", "CA2000:Dispose objects before losing scope")]
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes")]
public void SaveToFile(FileLocation location = FileLocation.Disk)

Parameters

location

FileLocation

The location.