LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
Load(Stream,AnnContainer) Method
See Also 
Leadtools.Windows.Annotations Namespace > AnnCodecs Class > Load Method : Load(Stream,AnnContainer) Method



stream
The System.IO.Stream from which to load the objects.
container
An AnnContainer into which to load the objects.

The Load(Stream,AnnContainer) Method supports WPF/Silverlight.

The Load(Stream,AnnContainer) Method is available in LEADTOOLS Document and Medical Imaging toolkits.

stream
The System.IO.Stream from which to load the objects.
container
An AnnContainer into which to load the objects.
Loads the annotation objects from a stream. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Overloads Public Shared Sub Load( _
   ByVal stream As Stream, _
   ByVal container As AnnContainer _
) 
Visual Basic (Usage)Copy Code
Dim stream As Stream
Dim container As AnnContainer
 
AnnCodecs.Load(stream, container)
C# 
public static void Load( 
   Stream stream,
   AnnContainer container
)
C++/CLI 
public:
static void Load( 
   Stream^ stream,
   AnnContainer^ container
) 

Parameters

stream
The System.IO.Stream from which to load the objects.
container
An AnnContainer into which to load the objects.

Example

For C#/VB examples, refer to Save(Stream,AnnContainer).

Remarks

This method can only load annotations saved with the AnnCodecsFormat.NativeXml format.

This method will not remove any existing objects in the container. If you are re-using an existing collection to load the annotation objects into, make sure to call AnnObjectCollection.Clear on the collection before you call this method.

This method will not position the stream back to its original position before it returns. It is your responsibility to position the stream back before you can load another page from this stream.

For more information, refer to WPF Annotation Files.

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

Load(Stream,AnnContainer) requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.