Visual Basic
C#
Managed Extensions for C++
C++/CLI
Parameters
- sender
- Object which triggered the event.
- e
- Data about the event.
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:
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 } |