PolyLineSegment PolyLineSegment PolyLineSegment PolyLineSegment Class


Represents a set of line segments defined by a Point collection with each Point specifying the end point of a line segment.

public : sealed class PolyLineSegment : PathSegment, IPolyLineSegmentpublic sealed class PolyLineSegment : PathSegment, IPolyLineSegmentPublic NotInheritable Class PolyLineSegment Inherits PathSegment Implements IPolyLineSegment// This API is not available in Javascript.
<PolyLineSegment .../>
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited methods

Inherited properties


This example creates a PathGeometry with two PathFigure objects, each of which contains multiple PathSegment objects.

    <Path Stroke="Black" StrokeThickness="4" >
                    <PathFigure StartPoint="10,50">
                            <BezierSegment Point1="100,0"
                            <LineSegment Point="400,100" />
                            <ArcSegment Size="50,50" RotationAngle="45"
            IsLargeArc="True" SweepDirection="Clockwise"

                    <PathFigure StartPoint="10,100">
                            <PolyLineSegment Points="50,100 50,150" />
                            <QuadraticBezierSegment Point1="200,200" Point2="300,100"/>

Various line shapes created by the example


PolyLineSegment() PolyLineSegment() PolyLineSegment() PolyLineSegment()

Initializes a new instance of the PolyLineSegment class.

public : PolyLineSegment()public PolyLineSegment()Public Sub New()// This API is not available in Javascript.


Points Points Points Points

Gets or sets the collection of Point values that defines this PolyLineSegment object.

public : PointCollection Points { get; set; }public PointCollection Points { get; set; }Public ReadWrite Property Points As PointCollection// This API is not available in Javascript.
<PolyLineSegment Points="pointSet"/>

PointsProperty PointsProperty PointsProperty PointsProperty

Identifies the Points dependency property.

public : static DependencyProperty PointsProperty { get; }public static DependencyProperty PointsProperty { get; }Public Static ReadOnly Property PointsProperty As DependencyProperty// This API is not available in Javascript.
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the Points dependency property.

See Also