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




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

Parameters

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

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

Here's an example of typical AfterPage event registration and declaration:

Example
// Event Registration
ImGearTWAIN imGearTWAIN = new ImGearTWAIN();
imGearTWAIN.AfterPage += new ImGearTWAINAfterPageEventHandler(imGearTWAIN_AfterPage);
See Also

Reference

ImGearTWAINAfterPageEventHandler Members
ImageGear.TWAIN Namespace
ImGearTWAINAfterPageEventArgs Class