MedicalViewerAnnotationRectangle Class

Summary
Represents the class that contains the properties of the annotation rectangle action.
Syntax
C#
VB
C++
publicclassMedicalViewerAnnotationRectangle :MedicalViewerAnnotation
PublicClassMedicalViewerAnnotationRectangleInheritsMedicalViewerAnnotation
publicref classMedicalViewerAnnotationRectangle :publicMedicalViewerAnnotation
Remarks

To set the properties of the annotation rectangle action, call theMedicalViewerBaseCell.SetActionPropertiesmethod. To retrieve the properties call theMedicalViewerBaseCell.GetActionPropertiesmethod.

The mouse controls the actions as follows:

Click and drag to create a rectangular annotation object. For more information, refer toWorking With Annotations.

Example

This example changes the properties for the rectangle annotation action

C#
VB
usingLeadtools;usingLeadtools.Codecs;usingLeadtools.MedicalViewer;publicvoidMedicalViewerAnnotationRectangleExample(){MedicalViewerForm myForm = GetMedicalControl();MedicalViewer medicalViewer = myForm.Viewer;MedicalViewerMultiCell cell = (MedicalViewerMultiCell)(medicalViewer.Cells[0]);MedicalViewerAnnotationRectangle rectangle =newMedicalViewerAnnotationRectangle();矩形。AnnotationColor =颜色。FromArgb (0, 0, 255);矩形。Flags = MedicalViewerAnnotationFlags.AllObjects;矩形。CreateFromCenter =true;cell.SetActionProperties(MedicalViewerActionType.AnnotationRectangle, rectangle);myForm.ShowDialog();}
ImportsLeadtoolsImportsLeadtools.CodecsImportsLeadtools.MedicalViewerPublicSubMedicalViewerAnnotationRectangleExample()DimmyFormAsMedicalViewerForm = GetMedicalControl()DimmedicalViewerAsMedicalViewer = myForm.ViewerDimcellAsMedicalViewerMultiCell =CType(medicalViewer.Cells(0), MedicalViewerMultiCell)DimrectangleAsMedicalViewerAnnotationRectangle =NewMedicalViewerAnnotationRectangle()矩形。AnnotationColor =颜色。FromArgb (0, 0, 255)矩形。Flags = MedicalViewerAnnotationFlags.AllObjects矩形。CreateFromCenter =Truecell.SetActionProperties(MedicalViewerActionType.AnnotationRectangle, rectangle)myForm.ShowDialog()EndSub
Requirements

Target Platforms

Leadtools.MedicalViewer Assembly
188金宝搏的网址客服|Support|Contact Us|Intellectual Property Notices
© 1991-2021LEAD Technologies, Inc.All Rights Reserved.