Leadtools.Annotations Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
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 
Managed Extensions for C++ 
[SerializableAttribute()]
public __gc class AnnCurveObject : public 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 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.Annotations requires a Document or Medical toolkit license and unlock key. For more information, refer to: Raster Pro/Document/Medical Features