Indicates whether the mode can start work.
protected bool CanStartWork(
Leadtools.Controls.InteractiveEventArgs e
)
Protected Function CanStartWork( _
ByVal e As Leadtools.Controls.InteractiveEventArgs _
) As Boolean
protected bool CanStartWork(
Leadtools.Controls.InteractiveEventArgs e
)
iOS:
- (BOOL)canStartWork:(UIGestureRecognizer *)gestureRecognizer
macOS:
- (BOOL)canStartWork:(LTBasicEvent *)event
protected boolean canStartWork(MotionEvent event)
function Leadtools.Controls.ImageViewerInteractiveMode.CanStartWork(
e
)
e
An InteractiveEventArgs that indicates if the mode can start work or not.
The mode can start work depending on multiple factors:
Whether the current pressed mouse button is the one associated with this mode.
If the user clicks on the background of the viewer not covered by the image (depending on the WorkOnImageRectangle value).
To help with all the above, derived classes can use CanStartWork to check if all the conditions are met and then starts the work.
Note on mouse wheel events: If the current image viewer has a an interactive mode for handling mouse wheel events set in MouseWheelInteractiveMode then in addition to the factors listed above, this method will return true only if the caller is this mode. If the viewer however does not have a mode for handling mouse wheel events (MouseWheelInteractiveMode is null), then this method will return true if the caller is the default mouse or touch interactive mode.
For an example, refer to ImageViewerInteractiveMode.
Products |
Support |
Feedback: CanStartWork Method - OLeadtools.Controls |
Introduction |
Help Version 19.0.2017.3.23
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.