ImageGear for .NET
AfterPage Event




This event is fired after each page is scanned using any of the scanning methods of ImGearTWAIN.
Syntax
'Declaration
 
Public Event AfterPage As ImGearTWAINAfterPageEventHandler
'Usage
 
Dim instance As ImGearTWAIN
Dim handler As ImGearTWAINAfterPageEventHandler
 
AddHandler instance.AfterPage, handler
public event ImGearTWAINAfterPageEventHandler AfterPage
public: __event ImGearTWAINAfterPageEventHandler* AfterPage
public:
event ImGearTWAINAfterPageEventHandler^ AfterPage
Event Data

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

PropertyDescription
CancelScanning Gets or sets a value indicating whether to cancel scanning.
Page Gets ImGearPage object containing the page just scanned.
PageNumber Gets number of page just scanned. The first page is number 1.
PendCount Gets number of pages remaining to be scanned. -1 if unknown.
Remarks

NOTE: Methods and properties of ImGearTWAIN should not be accessed in the event handler for this event.

This event can be used by an application to monitor scanning progress (on a per-page basis) and access the image just scanned. It can also be used to cancel scanning, if the application's event handler sets the ImGearTWAINAfterPageEventArgs.CancelScanning property to true.

See ImGearTWAINAfterPageEventHandler for an example of how to use this event.

See Also

Reference

ImGearTWAIN Class
ImGearTWAIN Members
ImGearTWAINAfterPageEventHandler Delegate

 

 


©2014. Accusoft Corporation. All Rights Reserved.

Send Feedback