WpfAnnotationCanvasLoad Method (Stream, WpfLayerAnnotation, IFormatter) |
Loads annotations from a stream into the provided layer.
Namespace:
Atalasoft.Annotate.Wpf
Assembly:
Atalasoft.dotImage.Wpf (in Atalasoft.dotImage.Wpf.dll) Version: 2026.2.0.0.42 (.NET 4.6.2, x86)
Syntaxpublic void Load(
Stream stream,
WpfLayerAnnotation layer,
IFormatter formatter
)
Public Sub Load (
stream As Stream,
layer As WpfLayerAnnotation,
formatter As IFormatter
)
Parameters
- stream
- Type: System.IOStream
A stream containing annotation data. - 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| Exception | Condition |
|---|
| ArgumentNullException | Thrown if any argument is null (Nothing in VB). |
| ArgumentException | Thrown if the stream does not have read access. |
| SerializationException | Thrown if there is an error during deserialization. |
RemarksIf 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