ImageGear .NET v25.2 - Updated
ImGearTWAINAfterPageEventHandler Delegate
ExampleExample 




ImageGear.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)
public delegate void ImGearTWAINAfterPageEventHandler( 
   object sender,
   ImGearTWAINAfterPageEventArgs e
)
public: __gc __delegate void ImGearTWAINAfterPageEventHandler( 
   Object* sender,
   ImGearTWAINAfterPageEventArgs* e
)
public delegate void ImGearTWAINAfterPageEventHandler( 
   Object^ sender,
   ImGearTWAINAfterPageEventArgs^ e
)

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);
// Event Declaration
void imGearTWAIN_AfterPage(object sender, ImGearTWAINAfterPageEventArgs e)
{
    // Access event arguments via ImGearTWAINAfterPageEventArgs e
}
See Also

Reference

ImGearTWAINAfterPageEventHandler Members
ImageGear.TWAIN Namespace
ImGearTWAINAfterPageEventArgs Class

Is this page helpful?
Yes No
Thanks for your feedback.