Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.4.3
|
Leadtools.Documents Namespace > LoadAsyncCompletedEventArgs Class : Document Property |
public Document Document {get;}
'Declaration
Public ReadOnly Property Document As Document
'Usage
Dim instance As LoadAsyncCompletedEventArgs Dim value As Document value = instance.Document
Document will contain the ready to use loaded document if the operation was successful. The value will be null if:
When the value of LoadAsyncCompletedEventArgs.Cancelled is true indicating that the operation was canceled by the user. This happens if the user had set the value of IsCancelPending to true while monitoring the Progress event.
When the value of LoadAsyncCompletedEventArgs.Error is not null. This happens when an error occurs while the document is being loaded. This could range from network errors thrown by the operation system to invalid file formats thrown by LEADTOOLS framework as any user errors thrown by the user while monitoring the Progress event.
For an example, refer to DocumentFactory.LoadFromUriAsync.