Leadtools.MedicalViewer Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
IsValidForAction(MedicalViewerActionType,MedicalViewerMouseButtons) Method
See Also 
Leadtools.MedicalViewer Namespace > MedicalViewer Class > IsValidForAction Method : IsValidForAction(MedicalViewerActionType,MedicalViewerMouseButtons) Method




actionType
The type of action being tested.
mouseButton
The mouse button that will be checked.
Determines whether the specified mouse button can be assigned to the specified action.

Syntax

Visual Basic (Declaration) 
Overloads Public Function IsValidForAction( _
   ByVal actionType As MedicalViewerActionType, _
   ByVal mouseButton As MedicalViewerMouseButtons _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As MedicalViewer
Dim actionType As MedicalViewerActionType
Dim mouseButton As MedicalViewerMouseButtons
Dim value As Boolean
 
value = instance.IsValidForAction(actionType, mouseButton)
Managed Extensions for C++ 
public: bool IsValidForAction( 
   MedicalViewerActionType actionType,
   MedicalViewerMouseButtons mouseButton
) 
C++/CLI 
public:
bool IsValidForAction( 
   MedicalViewerActionType actionType,
   MedicalViewerMouseButtons mouseButton
) 

Parameters

actionType
The type of action being tested.
mouseButton
The mouse button that will be checked.

Return Value

true if the mouse button can be assigned to the action, false otherwise.

Example

For an example, refer to #ctor

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 MedicalViewerMouseButtons.Wheel is passed to the mouseButton parameter and MedicalViewerActionType.MagnifyGlass to the actionType parameter, the method will throw an exception. This is because the mouse button is not valid for this action. If the same values are passed as parameters to the IsValidForAction method, the method returns false, indicating that the mouse button cannot be used.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Leadtools.MedicalViewer requires a Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features