Polyline Polyline Polyline Polyline Class

Definition

Draws a series of connected straight lines.

public : sealed class Polyline : Shape, IPolylinepublic sealed class Polyline : Shape, IPolylinePublic NotInheritable Class Polyline Inherits Shape Implements IPolyline// This API is not available in Javascript.
<Polyline .../>
Inheritance
Attributes
Windows 10 requirements
Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Inherited Members

Inherited properties

Inherited events

Inherited methods

Examples

This example shows how to use a Polyline to create a closed triangle.

<Canvas>  
  <Polyline Points="50,25 0,100 100,100 50,25"
    Stroke="Blue" StrokeThickness="10"
    Canvas.Left="75" Canvas.Top="50" />
</Canvas>

Constructors

Polyline() Polyline() Polyline() Polyline()

Initializes a new instance of the Polyline class.

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

Properties

FillRule FillRule FillRule FillRule

Gets or sets a value that specifies how the interior fill of the shape is determined.

public : FillRule FillRule { get; set; }public FillRule FillRule { get; set; }Public ReadWrite Property FillRule As FillRule// This API is not available in Javascript.
<Polyline FillRule="Nonzero"/>
-or-
<Polyline FillRule="EvenOdd"/>
Value
FillRule FillRule FillRule FillRule

A value of the enumeration that specifies the fill behavior. The default is EvenOdd.

FillRuleProperty FillRuleProperty FillRuleProperty FillRuleProperty

Identifies the FillRule dependency property.

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

The identifier for the FillRule dependency property.

Points Points Points Points

Gets or sets a collection that contains the vertex points of the Polyline.

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

A collection of Point structures that describes the vertex points of the Polyline. The default is null.

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