- 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().
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().
For an example, please refer to Leadtools.MedicalViewer.MedicalViewerCustomAnnotationRequestedObject.
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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7