ImageGear23.Twain Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class : AfterPage Event |
'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
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.
Property | Description |
---|---|
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. |
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.