Event that occurs one or more times while the factory is loading the document to indicate the current progress.
public event EventHandler<LoadAsyncProgressEventArgs> Progress
Public Event Progress As EventHandler(Of Leadtools.Document.LoadAsyncProgressEventArgs)
public:
event EventHandler<Leadtools::Documents::LoadAsyncProgressEventArgs^>^ Progress
Progress will occur one or more times while the document is being loaded and it can be used to show a progress bar indicator for the user (and optionally, support for aborting the load). Progress uses the LoadAsyncProgressEventArgs event data class that is populated with the following for each "chunk":
Member | Value |
---|---|
System.ComponentModel.ProgressChangedEventArgs.ProgressPercentage | Current progress percentage. This value goes from 0 to 100.. |
System.ComponentModel.ProgressChangedEventArgs.UserState | The same value originally set by the user in LoadDocumentAsyncOptions.UserState. |
Uri |
The location of the document being loaded. This is the uri value passed to LoadFromUriAsync |
BytesReceived |
Number of bytes received during this chunk of the operation. |
TotalBytesToReceive |
Total number of bytes received so far for the whole load operation. |
IsCancelPending |
Can be used to abort the load operation. |
Parameter | Type | Description |
---|---|---|
sender | object | The source of the event. |
e | LoadAsyncProgressEventArgs | The event data. |
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document