LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.31
AnnEllipseObject Class
See Also  Members  
Leadtools.Windows.Annotations Namespace : AnnEllipseObject Class



The AnnEllipseObject Class supports WPF/Silverlight.

The AnnEllipseObject Class is available in LEADTOOLS Document and Medical Imaging toolkits.

Defines an annotation ellipse object. Supported in Silverlight, Windows Phone 7

Object Model

AnnEllipseObject Class

Syntax

Visual Basic (Declaration) 
Public Class AnnEllipseObject 
   Inherits AnnRectangleObject
   Implements IAnnHeaderIAnnObjectIAnnRectangle 
Visual Basic (Usage)Copy Code
Dim instance As AnnEllipseObject
C# 
public class AnnEllipseObject : AnnRectangleObject, IAnnHeaderIAnnObjectIAnnRectangle  
C++/CLI 
public ref class AnnEllipseObject : public AnnRectangleObject, IAnnHeaderIAnnObjectIAnnRectangle  

Example

For XAML example, refer to AnnContainer.

This example creates an ellipse object.

Visual BasicCopy Code
Private Sub AnnEllipseObject_AnnEllipseObject(ByVal container As AnnContainer)
   Dim ellipse As AnnEllipseObject = New AnnEllipseObject()
   ellipse.Stroke = Colors.Red
   ellipse.StrokeThickness = 1.0
   ellipse.Fill = Colors.White
   ellipse.Rect = New Rect(100, 200, 400, 600)
   container.Children.Add(ellipse)
End Sub
C#Copy Code
private void AnnEllipseObject_AnnEllipseObject(AnnContainer container)
{
   AnnEllipseObject ellipse = new AnnEllipseObject();
   ellipse.StrokeThickness = 1.0;
   ellipse.Stroke = Colors.Red;
   ellipse.Fill = Colors.White;
   ellipse.Rect = new Rect(100, 200, 400, 600);
   container.Children.Add(ellipse);
}
SilverlightCSharpCopy Code
private void AnnEllipseObject_AnnEllipseObject(AnnContainer container)
{
   AnnEllipseObject ellipse = new AnnEllipseObject();
   ellipse.StrokeThickness = 1.0;
   ellipse.Stroke = Colors.Red;
   ellipse.Fill = Colors.White;
   ellipse.Rect = new Rect(100, 200, 400, 600);
   container.Children.Add(ellipse);
}
SilverlightVBCopy Code
Private Sub AnnEllipseObject_AnnEllipseObject(ByVal container As AnnContainer)
   Dim ellipse As AnnEllipseObject = New AnnEllipseObject()
   ellipse.StrokeThickness = 1.0
   ellipse.Stroke = Colors.Red
   ellipse.Fill = Colors.White
   ellipse.Rect = New Rect(100, 200, 400, 600)
   container.Children.Add(ellipse)
End Sub

Remarks

The ellipse annotation object is a simple ellipse defined by a bounding rectangle, a stroke and a fill.

For more information about the ellipse annotation object refer to AnnEllipseObject for WPF. For more information about the automated ellipse annotation object, refer to WPF Annotation Objects - Automated Features.

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         Leadtools.Windows.Annotations.AnnObject
            Leadtools.Windows.Annotations.AnnRectangleObject
               Leadtools.Windows.Annotations.AnnEllipseObject

Requirements

Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also

AnnEllipseObject requires a Document/Medical product license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features and Unlocking Special LEAD Features.