PolyLineSegment PolyLineSegment PolyLineSegment PolyLineSegment Class

Definition

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 .../>
Inheritance
Attributes
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

Examples

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

<Canvas>
    <Path Stroke="Black" StrokeThickness="4" >
        <Path.Data>
            <PathGeometry>
                <PathGeometry.Figures>
                    <PathFigure StartPoint="10,50">
                        <PathFigure.Segments>
                            <BezierSegment Point1="100,0"
            Point2="200,200"
            Point3="300,100"/>
                            <LineSegment Point="400,100" />
                            <ArcSegment Size="50,50" RotationAngle="45"
            IsLargeArc="True" SweepDirection="Clockwise"
            Point="200,100"/>
                        </PathFigure.Segments>
                    </PathFigure>

                    <PathFigure StartPoint="10,100">
                        <PathFigure.Segments>
                            <PolyLineSegment Points="50,100 50,150" />
                            <QuadraticBezierSegment Point1="200,200" Point2="300,100"/>
                        </PathFigure.Segments>
                    </PathFigure>
                </PathGeometry.Figures>
            </PathGeometry>
        </Path.Data>
    </Path>
</Canvas>

Various line shapes created by the example

Constructors

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.

Properties

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.
Value
DependencyProperty DependencyProperty DependencyProperty DependencyProperty

The identifier for the Points dependency property.

See Also