Click or drag to resize

WpfAnnotationCanvasLoad Method (String, WpfLayerAnnotation, IFormatter)

Loads annotations from a file into the provided layer.

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,
	WpfLayerAnnotation layer,
	IFormatter formatter
)

Parameters

fileName
Type: SystemString
The filename where annotation data is stored.
layer
Type: Atalasoft.Annotate.WpfWpfLayerAnnotation
The layer to which the annotations will be added.
formatter
Type: System.Runtime.SerializationIFormatter
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.
Remarks
If the annotation data is a collection of layers, each layer will be added as a child item supplied layer. If the data is a single layer, all annotations within the deserialized layer will be added to the supplied layer.
See Also