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 7Visual Basic (Declaration) | |
---|---|
Public Class AnnEllipseObject Inherits AnnRectangleObject Implements IAnnHeader, IAnnObject, IAnnRectangle |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As AnnEllipseObject |
C# | |
---|---|
public class AnnEllipseObject : AnnRectangleObject, IAnnHeader, IAnnObject, IAnnRectangle |
C++/CLI | |
---|---|
public ref class AnnEllipseObject : public AnnRectangleObject, IAnnHeader, IAnnObject, IAnnRectangle |
For XAML example, refer to AnnContainer.
This example creates an ellipse object.
Visual Basic | Copy 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); } |
SilverlightCSharp | 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); } |
SilverlightVB | Copy 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 |
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.
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
Leadtools.Windows.Annotations.AnnObject
Leadtools.Windows.Annotations.AnnRectangleObject
Leadtools.Windows.Annotations.AnnEllipseObject
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)