←Select platform

IsValidForAction(MedicalViewerActionType,MedicalViewerMouseButtons,MedicalViewerActionFlags) Method

Summary

Determines whether the specified mouse button and applying operation can be set to the specified action.

Syntax

C#
VB
C++
Public Overloads Overridable Function IsValidForAction( _ 
   ByVal actionType As Leadtools.Medicalviewer.MedicalViewerActionType, _ 
   ByVal mouseButton As Leadtools.Medicalviewer.MedicalViewerMouseButtons, _ 
   ByVal applyingOperation As Leadtools.Medicalviewer.MedicalViewerActionFlags _ 
) As Boolean 

Parameters

actionType
The action being tested.

mouseButton
The mouse button that will be checked.

applyingOperation
Flags that will be checked.

Return Value

true if the mouse button and the flags are valid to be assigned to the action; otherwise, false.

Remarks
  • To avoid exceptions being thrown, call this method to ensure that the mouse button can be assigned to the specified action before calling the SetAction method. For example, if Leadtools.MedicalViewer.MedicalViewerMouseButtons.Wheel is passed to the mouseButton parameter and MedicalViewerActionType.MagnifyGlass to the actionType parameter, the method throws an exception. If the same values are passed as parameters to the IsValidForAction method, the method returns false, indicating that the mouse button cannot be used.
Example

For an example, refer to Leadtools.MedicalViewer.MedicalViewer().

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.MedicalViewer Assembly
Click or drag to resize