LEADTOOLS Medical (Leadtools.MedicalViewer assembly)
LEAD Technologies, Inc

IsValidForAction(MedicalViewerActionType,MedicalViewerActionFlags) Method






The action being tested.
Flags that will be checked.
Determines whether the specified operation can be applied to the specified action.
Syntax
public virtual bool IsValidForAction( 
   MedicalViewerActionType actionType,
   MedicalViewerActionFlags applyingOperation
)
'Declaration
 
Public Overloads Overridable Function IsValidForAction( _
   ByVal actionType As MedicalViewerActionType, _
   ByVal applyingOperation As MedicalViewerActionFlags _
) As Boolean
'Usage
 
Dim instance As MedicalViewerBaseCell
Dim actionType As MedicalViewerActionType
Dim applyingOperation As MedicalViewerActionFlags
Dim value As Boolean
 
value = instance.IsValidForAction(actionType, applyingOperation)
public virtual bool IsValidForAction( 
   MedicalViewerActionType actionType,
   MedicalViewerActionFlags applyingOperation
)
 function Leadtools.MedicalViewer.MedicalViewerBaseCell.IsValidForAction(MedicalViewerActionType,MedicalViewerActionFlags)( 
   actionType ,
   applyingOperation 
)
public:
virtual bool IsValidForAction( 
   MedicalViewerActionType actionType,
   MedicalViewerActionFlags applyingOperation
) 

Parameters

actionType
The action being tested.
applyingOperation
Flags that will be checked.

Return Value

true if the applying operation is 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 will throw an exception. If the same values are passed as parameters to the IsValidForAction(MedicalViewerActionType,MedicalViewerMouseButtons) 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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

MedicalViewerBaseCell Class
MedicalViewerBaseCell Members
Overload List

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

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