Click or drag to resize

WpfAnnotationCanvas.Load Method (String, IFormatter)

Loads annotations from a file into the layers collection.

Namespace:  Atalasoft.Annotate.Wpf
Assembly:  Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public void Load(
	string fileName,
	IFormatter formatter
)

Parameters

fileName
Type: System.String
The filename where annotation data is stored.
formatter
Type: System.Runtime.Serialization.IFormatter
The formatter used to deserialize the data.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown if any argument is null (Nothing in VB).
FileNotFoundExceptionThrown if the file does not exist.
SerializationExceptionThrown if there is an error during deserialization.
See Also