LEADTOOLS Annotations for WPF and Silverlight (Leadtools.Windows.Annotations assembly)
LEAD Technologies, Inc

AnnCurveObject Class

Example 





Members 
Defines an annotation curve object. .NET support Silverlight support
Object Model
AnnCurveObject ClassAnnBrush ClassAnnBrush Class
Syntax
public class AnnCurveObject : AnnPolylineObject, IAnnCurveIAnnHeaderIAnnObjectIAnnPolyline  
'Declaration
 
Public Class AnnCurveObject 
   Inherits AnnPolylineObject
   Implements IAnnCurveIAnnHeaderIAnnObjectIAnnPolyline 
'Usage
 
Dim instance As AnnCurveObject
public sealed class AnnCurveObject : IAnnCurveIAnnHeaderIAnnObjectIAnnPolyline  
function Leadtools.Windows.Annotations.AnnCurveObject()
public ref class AnnCurveObject : public AnnPolylineObject, IAnnCurveIAnnHeaderIAnnObjectIAnnPolyline  
Remarks

The curve object is a spline curve that contains a collection of System.Windows.Point points, a Tension value and an System.Windows.Media.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.

Example
Copy CodeCopy 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 = Colors.Red
   curve.StrokeThickness = 1.0
   curve.Tension = 1
   container.Children.Add(curve)
End Sub
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 = Colors.Red;
   curve.StrokeThickness = 1.0;
   curve.Tension = 1;
   container.Children.Add(curve);
}
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 = Colors.Red;
   curve.StrokeThickness = 1.0;
   curve.Tension = 1;
   container.Children.Add(curve);
}
Private Sub AnnCurveObject_AnnCurveObject(ByVal container As AnnContainer)
   Dim curve As AnnCurveObject = 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 = Colors.Red
   curve.StrokeThickness = 1.0
   curve.Tension = 1
   container.Children.Add(curve)
End Sub
<Window x:Class="WPFSamples.AnnCurveObject"
   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
   Title="Leadtools.Windows.Annotations" Height="600" Width="800"
   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>
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnCurveObject Members
Leadtools.Windows.Annotations Namespace

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.