Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
Load(String,AnnContainer,Int32) Method
See Also 
Leadtools.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.
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
)
Managed Extensions for 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 an example, refer to AnnCodecs.

Remarks

This method will not remove any existing objects in the container, so if you are re-using an existing collection to load the annotation objects into, make sure to call RasterCollection<AnnObject>.Clear on the collection before you call this method.

For more information, refer to Annotation Files.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features