Defines a closed annotation curve object.
public class AnnClosedCurveObject : IAnnCurve, AnnPolygonObject
Public Class AnnClosedCurveObject
Inherits Leadtools.Windows.Annotations.AnnPolygonObject
Implements Leadtools.Windows.Annotations.IAnnCurve, Leadtools.Windows.Annotations.IAnnHeader, Leadtools.Windows.Annotations.IAnnObject, Leadtools.Windows.Annotations.IAnnPolygon, Leadtools.Windows.Annotations.IAnnPolyline
public ref class AnnClosedCurveObject : public Leadtools.Windows.Annotations.AnnPolygonObject, Leadtools.Windows.Annotations.IAnnCurve, Leadtools.Windows.Annotations.IAnnHeader, Leadtools.Windows.Annotations.IAnnObject, Leadtools.Windows.Annotations.IAnnPolygon, Leadtools.Windows.Annotations.IAnnPolyline
The closed curve object is a spline curve that contains a collection of System.Windows.Point points, a stroke, a fill and a tension value. The curve can be AnnPolygonObject.IsClosed or not, and can also have a certain AnnPolygonObject.FillRule. For more information about the closed curve annotation object refer to AnnClosedCurveObject for WPF. For more information about the automated closed curve annotation object, refer to WPF Annotation Objects - Automated Features.
This example creates a new closed curve object with 4 points.
using Leadtools.Windows.Annotations;
using Leadtools.Windows.Controls;
using Leadtools.Demos;
using Leadtools.Help;
private void AnnClosedCurveObject_AnnClosedCurveObject(AnnContainer container)
{
AnnClosedCurveObject closedCurve = new AnnClosedCurveObject();
closedCurve.Points.Add(new Point(100, 100));
closedCurve.Points.Add(new Point(200, 100));
closedCurve.Points.Add(new Point(200, 200));
closedCurve.Points.Add(new Point(100, 300));
closedCurve.Tension = 1;
closedCurve.Stroke = Colors.Red;
closedCurve.Fill = Colors.White;
closedCurve.FillRule = AnnFillRule.EvenOdd;
closedCurve.StrokeThickness = 2.0;
closedCurve.IsClosed = true;
container.Children.Add(closedCurve);
}
Imports Leadtools.Windows.Annotations
Imports Leadtools.Windows.Controls
Private Sub AnnClosedCurveObject_AnnClosedCurveObject(ByVal container As AnnContainer)
Dim closedCurve As AnnClosedCurveObject = New AnnClosedCurveObject()
closedCurve.Points.Add(New System.Windows.Point(100, 100))
closedCurve.Points.Add(New System.Windows.Point(200, 100))
closedCurve.Points.Add(New System.Windows.Point(200, 200))
closedCurve.Points.Add(New System.Windows.Point(100, 300))
closedCurve.Tension = 1
closedCurve.Stroke = Colors.Red
closedCurve.StrokeThickness = 2.0
closedCurve.Fill = Colors.White
closedCurve.FillRule = AnnFillRule.EvenOdd
closedCurve.IsClosed = True
container.Children.Add(closedCurve)
End Sub
using Leadtools.Windows.Annotations;
using Leadtools.Windows.Controls;
using Leadtools.Examples;
//using Leadtools.Help;
private void AnnClosedCurveObject_AnnClosedCurveObject(AnnContainer container)
{
AnnClosedCurveObject closedCurve = new AnnClosedCurveObject();
closedCurve.Points.Add(new Point(100, 100));
closedCurve.Points.Add(new Point(200, 100));
closedCurve.Points.Add(new Point(200, 200));
closedCurve.Points.Add(new Point(100, 300));
closedCurve.Tension = 1;
closedCurve.Stroke = Colors.Red;
closedCurve.Fill = Colors.White;
closedCurve.FillRule = AnnFillRule.EvenOdd;
closedCurve.StrokeThickness = 2.0;
closedCurve.IsClosed = true;
container.Children.Add(closedCurve);
}
Imports Leadtools.Windows.Annotations
Imports Leadtools.Windows.Controls
Private Sub AnnClosedCurveObject_AnnClosedCurveObject(ByVal container As AnnContainer)
Dim closedCurve As AnnClosedCurveObject = New AnnClosedCurveObject()
closedCurve.Points.Add(New Point(100, 100))
closedCurve.Points.Add(New Point(200, 100))
closedCurve.Points.Add(New Point(200, 200))
closedCurve.Points.Add(New Point(100, 300))
closedCurve.Tension = 1
closedCurve.Stroke = Colors.Red
closedCurve.Fill = Colors.White
closedCurve.FillRule = AnnFillRule.EvenOdd
closedCurve.StrokeThickness = 2.0
closedCurve.IsClosed = True
container.Children.Add(closedCurve)
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