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
<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()

Initializes a new instance of the Polyline class.

public : Polyline()public Polyline()Public Sub New()
Attributes

Properties

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
<Polyline FillRule="Nonzero"/>
-or-
<Polyline FillRule="EvenOdd"/>
Value
FillRule FillRule FillRule

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

Attributes

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

The identifier for the FillRule dependency property.

Attributes

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
<Polyline Points="pointSet"/>
Value
PointCollection PointCollection PointCollection

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

Attributes

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

The identifier for the Points dependency property.

Attributes

See Also