Leadtools.Windows.Annotations Requires Document/Medical license. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
AnnPolylineObject Class
See Also  Members   Example 
Leadtools.Windows.Annotations Namespace : AnnPolylineObject Class





Defines an annotation polyline object.

Object Model



Syntax

Visual Basic (Declaration) 
<SerializableAttribute()>
Public Class AnnPolylineObject 
   Inherits AnnObjectBase
Visual Basic (Usage)Copy Code
Dim instance As AnnPolylineObject
C# 
[SerializableAttribute()]
public class AnnPolylineObject : AnnObjectBase 
C++/CLI 
[SerializableAttribute()]
public ref class AnnPolylineObject : public AnnObjectBase 
XAML Object Element Usage 

<AnnPolylineObject .../>

XAML Object Element Usage 

<AnnPolylineObject .../>

Example

For XAML example, refer to AnnPolygonObject.

This example creates a new polyline object with 4 points.

Visual BasicCopy Code
Private Sub AnnPolylineObject_AnnPolylineObject(ByVal container As AnnContainer)
  Dim polyline As AnnPolylineObject = New AnnPolylineObject()
    polyline.Points.Add(New System.Windows.Point(100, 100))
    polyline.Points.Add(New System.Windows.Point(200, 100))
    polyline.Points.Add(New System.Windows.Point(200, 200))
    polyline.Points.Add(New System.Windows.Point(100, 300))
  polyline.Stroke = Brushes.Red
  polyline.StrokeThickness = 1.0
  container.Children.Add(polyline)
End Sub
C#Copy Code
private void AnnPolylineObject_AnnPolylineObject(AnnContainer container) 

   AnnPolylineObject polyline = new AnnPolylineObject(); 
   polyline.Points.Add(new Point(100, 100)); 
   polyline.Points.Add(new Point(200, 100)); 
   polyline.Points.Add(new Point(200, 200)); 
   polyline.Points.Add(new Point(100, 300)); 
   polyline.Stroke = Brushes.Red; 
   polyline.StrokeThickness = 1.0; 
   container.Children.Add(polyline); 
}

Remarks

The polyline object is a simple polyline that contains a collection of Point points and a stroke. For more information about the polyline annotation object refer to AnnPolylineObject for WPF. For more information about the automated polyline 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
                        Leadtools.Windows.Annotations.AnnPolygonObject
                        Leadtools.Windows.Annotations.AnnPolyRulerObject

Requirements

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

See Also

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