Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
AnnCurveObject Class
See Also  Members   Example 
Leadtools.Annotations Namespace : AnnCurveObject Class



Defines an annotation curve object.

Object Model













Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class AnnCurveObject 
   Inherits AnnPolylineObject
Visual Basic (Usage)Copy Code
Dim instance As AnnCurveObject
C# 
[SerializableAttribute()]
public class AnnCurveObject : AnnPolylineObject 
C++/CLI 
[SerializableAttribute()]
public ref class AnnCurveObject : public AnnPolylineObject 

Example

This example creates a curve object.

Visual BasicCopy Code
Private Sub AnnCurveObject_AnnCurveObject(ByVal container As AnnContainer)
   Dim curve As AnnCurveObject = New AnnCurveObject()
   curve.Points.Add(New AnnPoint(100, 100, AnnUnit.Pixel))
   curve.Points.Add(New AnnPoint(200, 100, AnnUnit.Pixel))
   curve.Points.Add(New AnnPoint(200, 200, AnnUnit.Pixel))
   curve.Points.Add(New AnnPoint(100, 300, AnnUnit.Pixel))
   curve.Pen = New AnnPen(Color.Red, New AnnLength(1, AnnUnit.Pixel))
   curve.Tension = 1
   container.Objects.Add(curve)
End Sub
C#Copy Code
private void AnnCurveObject_AnnCurveObject(AnnContainer container) 

   AnnCurveObject curve = new AnnCurveObject(); 
   curve.Points.Add(new AnnPoint(100, 100, AnnUnit.Pixel)); 
   curve.Points.Add(new AnnPoint(200, 100, AnnUnit.Pixel)); 
   curve.Points.Add(new AnnPoint(200, 200, AnnUnit.Pixel)); 
   curve.Points.Add(new AnnPoint(100, 300, AnnUnit.Pixel)); 
   curve.Pen = new AnnPen(Color.Red, new AnnLength(1, AnnUnit.Pixel)); 
   curve.Tension = 1; 
   container.Objects.Add(curve); 
}

Remarks

The curve object is a spline curve that contains a collection of AnnPoint points, a Tension value and an AnnPen pen. For more information about the curve annotation object refer to AnnCurveObject. For more information about the automated curve annotation object, refer to Annotation Objects - Automated Features.

Inheritance Hierarchy

System.Object
   Leadtools.Annotations.AnnDrawable
      Leadtools.Annotations.AnnObject
         Leadtools.Annotations.AnnPolylineObject
            Leadtools.Annotations.AnnCurveObject

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

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