The AnnPolylineObject Class supports WPF/Silverlight.
The AnnPolylineObject Class is available in LEADTOOLS Document and Medical Imaging toolkits.
Defines an annotation polyline object.
Supported in Silverlight, Windows Phone 7
Object Model
Syntax
Example
For XAML example, refer to AnnPolygonObject.
This example creates a new polyline object with 4 points.
Visual Basic | Copy 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 = Colors.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 = Colors.Red;
polyline.StrokeThickness = 1.0;
container.Children.Add(polyline);
} |
SilverlightCSharp | 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 = Colors.Red;
polyline.StrokeThickness = 1.0;
container.Children.Add(polyline);
} |
SilverlightVB | Copy Code |
---|
Private Sub AnnPolylineObject_AnnPolylineObject(ByVal container As AnnContainer)
Dim polyline As AnnPolylineObject = 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 = Colors.Red
polyline.StrokeThickness = 1.0
container.Children.Add(polyline)
End Sub |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)
See Also