Visual Basic (Declaration) | |
---|---|
Overloads Public Function IsValidForAction( _ ByVal actionType As MedicalViewerActionType, _ ByVal applyingOperation As MedicalViewerActionFlags _ ) As Boolean |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public bool IsValidForAction( MedicalViewerActionType actionType, MedicalViewerActionFlags applyingOperation ) |
Managed Extensions for C++ | |
---|---|
public: bool IsValidForAction( MedicalViewerActionType actionType, MedicalViewerActionFlags applyingOperation ) |
C++/CLI | |
---|---|
public: 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, false otherwise.For an example, refer to #ctor
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. If the same values are passed as parameters to the IsValidForAction method, the method returns false, indicating that the mouse button cannot be used.
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