ImageGear .NET - Updated
LoadPage(Stream,Int32,ImGearARTLoadEvents) Method




ImageGear23.Art Assembly > ImageGear.ART Namespace > ImGearART Class > LoadPage Method : LoadPage(Stream,Int32,ImGearARTLoadEvents) Method
Stream from which to load marks. The LoadPage method works from the current stream position, so if you are indexing pages from the beginning of the multi-page annotations file, you need to reset the stream position to the beginning.
Zero-based page number. First page is 0.
An instance of the ImGearARTLoadEvents class.
Loads ART marks from a stream and allows the use of events that occur during loading.
Syntax
'Declaration
 
Public Overloads Shared Function LoadPage( _
   ByVal stream As Stream, _
   ByVal pageNumber As Integer, _
   ByVal events As ImGearARTLoadEvents _
) As ImGearARTPage
'Usage
 
Dim stream As Stream
Dim pageNumber As Integer
Dim events As ImGearARTLoadEvents
Dim value As ImGearARTPage
 
value = ImGearART.LoadPage(stream, pageNumber, events)
public static ImGearARTPage LoadPage( 
   Stream stream,
   int pageNumber,
   ImGearARTLoadEvents events
)
public: static ImGearARTPage* LoadPage( 
   Stream* stream,
   int pageNumber,
   ImGearARTLoadEvents events
) 
public:
static ImGearARTPage^ LoadPage( 
   Stream^ stream,
   int pageNumber,
   ImGearARTLoadEvents events
) 

Parameters

stream
Stream from which to load marks. The LoadPage method works from the current stream position, so if you are indexing pages from the beginning of the multi-page annotations file, you need to reset the stream position to the beginning.
pageNumber
Zero-based page number. First page is 0.
events
An instance of the ImGearARTLoadEvents class.

Return Value

Remarks
This method loads annotation marks from an XML stream. If the XML stream contains syntax errors ART page will not be loaded and method returns null. In case of semantic errors see the description of specific mark class.

This method can also be used to load ART 2.0 marks from the binary ART format.

See Also

Reference

ImGearART Class
ImGearART Members
Overload List
ImGearARTPage Class