ImageGear .NET v24.14 - Updated September 15, 2020
ImGearTWAINBeforePageEventHandler Delegate
ExampleExample 




ImageGear24.Twain Assembly > ImageGear.TWAIN Namespace : ImGearTWAINBeforePageEventHandler Delegate
Object which triggered the event.
Data about the event.
This is the delegate used to pass ImGearTWAIN.BeforePage events on to an application event handler.
Syntax
'Declaration
 
Public Delegate Sub ImGearTWAINBeforePageEventHandler( _
   ByVal sender As Object, _
   ByVal e As ImGearTWAINBeforePageEventArgs _
) 
 
'Usage
 
Dim instance As New ImGearTWAINBeforePageEventHandler(AddressOf HandlerMethod)

Parameters

sender
Object which triggered the event.
e
Data about the event.
Remarks

The delegate follows the standard .NET event model. The ImGearTWAIN.BeforePage event occurs before scanning a page. It provides the page number to be scanned and gives an opportunity to cancel scanning.

Here's an example of typical ImGearTWAIN.BeforePage event registration and declaration:

Example
// Event Registration
ImGearTWAIN imGearTWAIN = new ImGearTWAIN();
imGearTWAIN.BeforePage += new ImGearTWAINBeforePageEventHandler(imGearTWAIN_BeforePage);
See Also

Reference

ImGearTWAINBeforePageEventHandler Members
ImageGear.TWAIN Namespace
ImGearTWAINBeforePageEventArgs Class