Leadtools.MedicalViewer Requires Medical Imaging license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
MedicalViewerAnnotationEllipse Class
See Also  Members   Example 
Leadtools.MedicalViewer Namespace : MedicalViewerAnnotationEllipse Class



Represents the class that contains the properties of the annotation ellipse action.

Syntax

Visual Basic (Declaration) 
Public Class MedicalViewerAnnotationEllipse 
   Inherits MedicalViewerAnnotation
Visual Basic (Usage)Copy Code
Dim instance As MedicalViewerAnnotationEllipse
C# 
public class MedicalViewerAnnotationEllipse : MedicalViewerAnnotation 
C++/CLI 
public ref class MedicalViewerAnnotationEllipse : public MedicalViewerAnnotation 

Example

Set the properties for the ellipse annotation action

Visual BasicCopy Code
<Test> _
Public Sub MedicalViewerAnnotationEllipseExample1()
   Dim myForm As MedicalViewerForm = GetMedicalControl()
   Dim medicalViewer As MedicalViewer = myForm.Viewer
   Dim ellipse As MedicalViewerAnnotationEllipse = New MedicalViewerAnnotationEllipse()
   ellipse.AnnotationColor = Color.FromArgb(0, 0, 255)
   ellipse.Flags = MedicalViewerAnnotationFlags.AllObjects
   ellipse.CreateFromCenter = True
   medicalViewer.SetActionProperties(MedicalViewerActionType.AnnotationEllipse, ellipse)

   myForm.ShowDialog()
End Sub
C#Copy Code
public void MedicalViewerAnnotationEllipseExample1() 

   MedicalViewerForm myForm = GetMedicalControl(); 
   MedicalViewer medicalViewer = myForm.Viewer; 
 
   MedicalViewerAnnotationEllipse ellipse = new MedicalViewerAnnotationEllipse(); 
   ellipse.AnnotationColor = Color.FromArgb(0, 0, 255); 
   ellipse.Flags = MedicalViewerAnnotationFlags.AllObjects; 
   ellipse.CreateFromCenter = true; 
   medicalViewer.SetActionProperties(MedicalViewerActionType.AnnotationEllipse, ellipse); 
 
   myForm.ShowDialog(); 
}

Remarks

To set the properties of the annotation ellipse action, call the SetActionProperties method, and to retrieve the properties call the GetActionProperties method.

The mouse controls the actions as follows:

  • Click and drag to create an elliptical annotation object.

For more information, refer to Working With Annotations.

Inheritance Hierarchy

System.Object
   Leadtools.MedicalViewer.MedicalViewerBaseAction
      Leadtools.MedicalViewer.MedicalViewerAnnotation
         Leadtools.MedicalViewer.MedicalViewerAnnotationEllipse

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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