ImageGear for .NET
BeforePage Event
See Also  Send Feedback
ImageGear21.Twain Assembly > ImageGear.TWAIN Namespace > ImGearTWAIN Class : BeforePage Event




Glossary Item Box

This event is fired before each page is scanned using any of the scanning methods of ImGearTWAIN.

Syntax

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

Event Data

The event handler receives an argument of type ImGearTWAINBeforePageEventArgs containing data related to this event. The following ImGearTWAINBeforePageEventArgs properties provide information specific to this event.

PropertyDescription
CancelScanning Gets or sets a value indicating whether to cancel scanning.
PageNumber Gets number of page about to be scanned. The first page is number 1.

Remarks

NOTE: Methods and properties of ImGearTWAIN should not be accessed in the event handler for this event.

This event can be used by an application to monitor scanning progress (on a per-page basis).

It can also be used to cancel scanning before scanning the next page, if the application's event handler sets the ImGearTWAINAfterPageEventArgs.CancelScanning property to TRUE.

See ImGearTWAINBeforePageEventHandler for an example of how to use this event.

See Also

©2013. Accusoft Corporation. All Rights Reserved.