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(String,AnnContainer,Int32) Method
See Also 
Leadtools.Windows.Annotations Namespace > AnnCodecs Class > Load Method : Load(String,AnnContainer,Int32) Method



fileName
Name of the annotation file to load.
container
An AnnContainer into which to load the objects.
page
1-based page number to load.

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

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

fileName
Name of the annotation file to load.
container
An AnnContainer into which to load the objects.
page
1-based page number to load.
Loads the annotation objects from a disk file.

Syntax

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

Parameters

fileName
Name of the annotation file to load.
container
An AnnContainer into which to load the objects.
page
1-based page number to load.

Example

For C#/VB examples, refer to AnnCodecs.

Remarks

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

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(String,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.