Assigns the action to a specific mouse button.
public override void SetAction(
MedicalViewerActionType actionType,
MedicalViewerMouseButtons mouseButton,
MedicalViewerActionFlags applyingOperation
)
Public Overrides Sub SetAction( _
ByVal actionType As Leadtools.Medicalviewer.MedicalViewerActionType, _
ByVal mouseButton As Leadtools.Medicalviewer.MedicalViewerMouseButtons, _
ByVal applyingOperation As Leadtools.Medicalviewer.MedicalViewerActionFlags _
)
public:
void SetAction(
Leadtools.Medicalviewer.MedicalViewerActionType actionType,
Leadtools.Medicalviewer.MedicalViewerMouseButtons mouseButton,
Leadtools.Medicalviewer.MedicalViewerActionFlags applyingOperation
) override
actionType
The action to be assigned
mouseButton
The Mouse event to be associated with the specified action.
applyingOperation
Indicates the cells to which the action is applied and when the action is applied.
An action must be added to a container before it can be assigned to a mouse button. To add an action to a container call Leadtools.MedicalViewer.MedicalViewerBaseCell.AddAction(leadtools.medicalviewer.medicalvieweractiontype).
If an action is set to a mouse button that is already used by another action, the new action will overwrite the old one.
Verify that the mouse button can be assigned to the specified action before assigning the button. Do this by calling the Leadtools.MedicalViewer.MedicalViewerBaseCell.IsValidForAction(leadtools.medicalviewer.medicalvieweractiontype,leadtools.medicalviewer.medicalviewermousebuttons,leadtools.medicalviewer.medicalvieweractionflags) 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 Leadtools.MedicalViewer.MedicalViewerBaseCell.IsValidForAction(leadtools.medicalviewer.medicalvieweractiontype,leadtools.medicalviewer.medicalviewermousebuttons,leadtools.medicalviewer.medicalvieweractionflags) method, the method will return false, indicating that the mouse button cannot be used.
For an example refer to Medical3DObject.RotateX
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET