Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
AnnCurveObject Class
See Also  Members   Example 
Leadtools.Windows.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 
XAML Object Element Usage 

<AnnCurveObject .../>

XAML Object Element Usage 

<AnnCurveObject .../>

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 System.Windows.Point(100, 100))
    curve.Points.Add(New System.Windows.Point(200, 100))
    curve.Points.Add(New System.Windows.Point(200, 200))
    curve.Points.Add(New System.Windows.Point(100, 300))
  curve.Stroke = Brushes.Red
  curve.StrokeThickness = 1.0
  curve.Tension = 1
  container.Children.Add(curve)
End Sub
C#Copy Code
private void AnnCurveObject_AnnCurveObject(AnnContainer container) 

   AnnCurveObject curve = new AnnCurveObject(); 
   curve.Points.Add(new Point(100, 100)); 
   curve.Points.Add(new Point(200, 100)); 
   curve.Points.Add(new Point(200, 200)); 
   curve.Points.Add(new Point(100, 300)); 
   curve.Stroke = Brushes.Red; 
   curve.StrokeThickness = 1.0; 
   curve.Tension = 1; 
   container.Children.Add(curve); 
}
XAMLCopy Code
<Window x:Class="WPFSamples.AnnCurveObject" Title="Leadtools.Windows.Annotations" Height="600" Width="800" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Leadtools_Windows_Annotations="clr-namespace:Leadtools.Windows.Annotations;assembly=Leadtools.Windows.Annotations"> 
  <Leadtools_Windows_Annotations:AnnCurveObject Stroke="Blue" StrokeThickness="3.0" Tension="0.5" Points="100,100 175, 125, 25,150 175,175 100,200" Header="Curve Object" /> 
</Window>

Remarks

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

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  Leadtools.Windows.Annotations.AnnObjectBase
                     Leadtools.Windows.Annotations.AnnPolylineObject
                        Leadtools.Windows.Annotations.AnnCurveObject

Requirements

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

See Also

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