Defines an annotation curve object.
public class AnnCurveObject : IAnnCurve, AnnPolylineObject Public Class AnnCurveObjectInherits Leadtools.Windows.Annotations.AnnPolylineObjectImplements Leadtools.Windows.Annotations.IAnnCurve, Leadtools.Windows.Annotations.IAnnHeader, Leadtools.Windows.Annotations.IAnnObject, Leadtools.Windows.Annotations.IAnnPolyline
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.
This example creates a curve object.
using Leadtools.Windows.Annotations;using Leadtools.Windows.Controls;using Leadtools.Help;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);}
Imports Leadtools.Windows.AnnotationsImports Leadtools.Windows.ControlsPrivate 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.Redcurve.StrokeThickness = 1.0curve.Tension = 1container.Children.Add(curve)End Sub
using Leadtools.Windows.Annotations;using Leadtools.Windows.Controls;//using Leadtools.Help;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);}
Imports Leadtools.Windows.AnnotationsImports Leadtools.Windows.Controls'using Leadtools.Help;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.Redcurve.StrokeThickness = 1.0curve.Tension = 1container.Children.Add(curve)End Sub
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
