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 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:
C# | Copy Code |
---|---|
// Event Registration ImGearTWAIN imGearTWAIN = new ImGearTWAIN(); imGearTWAIN.AfterPage += new ImGearTWAINAfterPageEventHandler(imGearTWAIN_AfterPage); |
C# | Copy Code |
---|---|
// Event Declaration void imGearTWAIN_AfterPage(object sender, ImGearTWAINAfterPageEventArgs e) { // Access event arguments via ImGearTWAINAfterPageEventArgs e } |