LEADTOOLS Annotations (Leadtools.Annotations assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
AnnCurveObject Class
See Also  Members  
Leadtools.Annotations Namespace : AnnCurveObject Class



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

Defines an annotation curve object.

Object Model

AnnCurveObject ClassAnnRectangle StructureAnnBrush ClassAnnContainer ClassAnnFont ClassAnnGroupObject ClassAnnFont ClassAnnPoint StructureAnnPoint StructureAnnPen ClassAnnPoint StructureAnnPoint StructureAnnUnitConverter Class

Syntax

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

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 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

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