ImageGear for .NET
ImGearTWAINBeforePageEventHandler Delegate
See Also  Example Send Feedback
ImageGear21.Twain Assembly > ImageGear.TWAIN Namespace : ImGearTWAINBeforePageEventHandler Delegate




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

Glossary Item Box

This is the delegate used to pass ImGearTWAIN.BeforePage events on to an application event handler.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

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

C#Copy Code
// Event Registration
ImGearTWAIN imGearTWAIN = new ImGearTWAIN();
imGearTWAIN.BeforePage += new ImGearTWAINBeforePageEventHandler(imGearTWAIN_BeforePage);
C#Copy Code
// Event Declaration
void imGearTWAIN_BeforePage(object sender, ImGearTWAINBeforePageEventArgs e)
{
    // Access event arguments via ImGearTWAINBeforePageEventArgs e 
}

See Also

©2013. Accusoft Corporation. All Rights Reserved.