ImageGear23.Twain Assembly > ImageGear.TWAIN Namespace : ImGearTWAINAfterPageEventHandler Delegate |
'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 )
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:
// 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 }