←Select platform

JobStarted Event

Summary

Occurs when a job is about to start.

Syntax

C#
VB
Java
Objective-C
C++
public event EventHandler<OcrAutoRecognizeRunJobEventArgs> JobStarted 
Event JobStarted As EventHandler(Of OcrAutoRecognizeRunJobEventArgs) 
- (void)autoRecognizeManager:(LTOcrAutoRecognizeManager *)manager didStartWithStatus:(LTOcrAutoRecognizeManagerJobStatus *)status 
synchronized public void addJobStartedListener(OcrAutoRecognizeRunJobListener listener) 
synchronized public void removeJobStartedListener(OcrAutoRecognizeRunJobListener listener) 
             
event EventHandler<OcrAutoRecognizeRunJobEventArgs^>^ JobStarted 

Event Data

The event handler receives an argument of type OcrAutoRecognizeRunJobEventArgs containing data related to this event. The following OcrAutoRecognizeRunJobEventArgs properties provide information specific to this event.

PropertyDescription
Job Gets the job that triggered this event.
Status Gets or sets a value indicating whether to continue or abort current job.
Remarks

This event will occur when Run, RunJob or RunJobAsync is called.

To abort pending jobs in a multi-threaded application using IOcrAutoRecognizeManager, you subscribe to this event and set the value of OcrAutoRecognizeRunJobEventArgs.Status to OcrAutoRecognizeManagerJobStatus.Abort. You can also examine OcrAutoRecognizeRunJobEventArgs.Job and only abort certain jobs depending on your application logic.

The JobCompleted event will always occur when a job is run whether the job is aborted or completed.

Example

For an example, refer to RunJob.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.Ocr Assembly