The IsValidForAction(MedicalViewerActionType,MedicalViewerActionFlags) Method is available as an add-on to the LEADTOOLS Medical Imaging toolkits.
- actionType
- The action being tested.
- applyingOperation
- Flags that will be checked.
Visual Basic (Declaration) | |
---|---|
Overloads Public Overridable Function IsValidForAction( _ ByVal actionType As MedicalViewerActionType, _ ByVal applyingOperation As MedicalViewerActionFlags _ ) As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As Medical3DControl Dim actionType As MedicalViewerActionType Dim applyingOperation As MedicalViewerActionFlags Dim value As Boolean value = instance.IsValidForAction(actionType, applyingOperation) |
C# | |
---|---|
public virtual bool IsValidForAction( MedicalViewerActionType actionType, MedicalViewerActionFlags applyingOperation ) |
C++/CLI | |
---|---|
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.For an example, refer to Leadtools.MedicalViewer.MedicalViewer().
To avoid exceptions being thrown, call this method to ensure that the mouse button can be assigned to the specified action before calling the Leadtools.MedicalViewer.MedicalViewerBaseCell.SetAction(Leadtools.MedicalViewer.MedicalViewerActionType,Leadtools.MedicalViewer.MedicalViewerMouseButtons,Leadtools.MedicalViewer.MedicalViewerActionFlags) method. For example, if Leadtools.MedicalViewer.MedicalViewerMouseButtons.Wheel is passed to the mouseButton parameter and Leadtools.MedicalViewer.MedicalViewerActionType.MagnifyGlass to the actionType parameter, the method will throw an exception. If the same values are passed as parameters to the Leadtools.MedicalViewer.MedicalViewerBaseCell.IsValidForAction(Leadtools.MedicalViewer.MedicalViewerActionType,Leadtools.MedicalViewer.MedicalViewerMouseButtons) method, the method returns false, indicating that the mouse button cannot be used.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7