ImageGear .NET v25.2 - Updated
AfterPage Event




ImageGear.Twain Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class : 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
Gets or sets a value indicating whether to cancel scanning.  
Gets ImGearPage object containing the page just scanned.  
Gets number of page just scanned. The first page is number 1.  
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