Defines an annotation polyline object.
Object Model
Syntax
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 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 = 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
Inheritance Hierarchy
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, and Windows Server 2003 family
See Also