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



action
the custom action index that will be identified as a custom annotation action.
annotationObjectType
the type of the custom annotation object, you can retrieve this value by using typeof().
action
the custom action index that will be identified as a custom annotation action.
annotationObjectType
the type of the custom annotation object, you can retrieve this value by using typeof().
Declares the custom action sent as annotation action.

Syntax

Visual Basic (Declaration) 
Public Sub DeclareActionAsAnnotation( _
   ByVal action As MedicalViewerActionType, _
   ByVal annotationObjectType As Type _
) 
Visual Basic (Usage)Copy Code
Dim instance As Medical3DControl
Dim action As MedicalViewerActionType
Dim annotationObjectType As Type
 
instance.DeclareActionAsAnnotation(action, annotationObjectType)
C# 
public void DeclareActionAsAnnotation( 
   MedicalViewerActionType action,
   Type annotationObjectType
)
C++/CLI 
public:
void DeclareActionAsAnnotation( 
   MedicalViewerActionType action,
   Type^ annotationObjectType
) 

Parameters

action
the custom action index that will be identified as a custom annotation action.
annotationObjectType
the type of the custom annotation object, you can retrieve this value by using typeof().

Example

Remarks

Before declaring the action, add the action using the Leadtools.MedicalViewer.MedicalViewerBaseCell.AddAction(Leadtools.MedicalViewer.MedicalViewerActionType) method.

The custom action value must be larger than 100.

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