LEADTOOLS Medical (Leadtools.Medical3D assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
CanExecuteAction Method
See Also 
Leadtools.Medical3D Namespace > Medical3DControl Class : CanExecuteAction Method



actionType
Leadtools.MedicalViewer.MedicalViewerActionTypethat represents the action which will be tested if it can be executed in the Medical3DControl
actionType
Leadtools.MedicalViewer.MedicalViewerActionTypethat represents the action which will be tested if it can be executed in the Medical3DControl
A method that is used to determine whether the action actionType can be executed in the Medical3DControl.

Syntax

Visual Basic (Declaration) 
Overrides Public Function CanExecuteAction( _
   ByVal actionType As MedicalViewerActionType _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As Medical3DControl
Dim actionType As MedicalViewerActionType
Dim value As Boolean
 
value = instance.CanExecuteAction(actionType)
C# 
public override bool CanExecuteAction( 
   MedicalViewerActionType actionType
)
C++/CLI 
public:
bool CanExecuteAction( 
   MedicalViewerActionType actionType
) override 

Parameters

actionType
Leadtools.MedicalViewer.MedicalViewerActionTypethat represents the action which will be tested if it can be executed in the Medical3DControl

Remarks

Currently that action that can be executed in the Medical3DControl are:
  • Window level
  • Rotate 3D Object
  • Offset
  • Scale 3D Object
  • Rotate 3D Camera
  • Translate 3D Camera
  • Scale
  • Translate Plane
  • Rotate Plane

To enable the Action, use the Leadtools.MedicalViewer.MedicalViewerBaseCell.AddAction(Leadtools.MedicalViewer.MedicalViewerActionType) method to add the action to the Medical3DControl. Then use the Leadtools.MedicalViewer.MedicalViewerBaseCell.SetAction(Leadtools.MedicalViewer.MedicalViewerActionType,Leadtools.MedicalViewer.MedicalViewerMouseButtons,Leadtools.MedicalViewer.MedicalViewerActionFlags) to associate the action with a mouse button.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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