Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Load(Stream,AnnContainer,Int32) Method
See Also 
Leadtools.Windows.Annotations Namespace > AnnCodecs Class > Load Method : Load(Stream,AnnContainer,Int32) Method



stream
The Stream from which to load the objects.
container
An AnnContainer into which to load the objects.
page
1-based page number to load.
stream
The Stream from which to load the objects.
container
An AnnContainer into which to load the objects.
page
1-based page number to load.
Loads the annotation objects from a stream.

Syntax

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

Parameters

stream
The Stream from which to load the objects.
container
An AnnContainer into which to load the objects.
page
1-based page number to load.

Example

Remarks

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: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family

See Also

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