ImageGear .NET v25.1 - Updated
BeforePage Event




ImageGear.Twain Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class : BeforePage Event
This event is fired before each page is scanned using any of the scanning methods of ImGearTWAIN.
Syntax
'Declaration
 
Public Event BeforePage As ImGearTWAINBeforePageEventHandler
'Usage
 
Dim instance As ImGearTWAIN
Dim handler As ImGearTWAINBeforePageEventHandler
 
AddHandler instance.BeforePage, handler
public event ImGearTWAINBeforePageEventHandler BeforePage
public: __event ImGearTWAINBeforePageEventHandler* BeforePage
public:
event ImGearTWAINBeforePageEventHandler^ BeforePage
Event Data

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

PropertyDescription
Gets or sets a value indicating whether to cancel scanning.  
Gets number of page about to be scanned. The first page is number 1.  
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).

It can also be used to cancel scanning before scanning the next page, if the application's event handler sets the ImGearTWAINAfterPageEventArgs.CancelScanning property to TRUE.

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

See Also