Polyline Polyline Polyline Class

Draws a series of connected straight lines.

Syntax

Declaration

public sealed class Polylinepublic sealed class PolylinePublic NotInheritable Class Polyline
<Polyline .../>

Inheritance Hierarchy

Inherited Members

Inherited properties

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Tag
Tag
Tag
, , , , , , , , , , , , , , , , , , , , , , , , ,

Inherited events

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Inherited methods

, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Remarks

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 summary

Initializes a new instance of the Polyline class.

Properties summary

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

Identifies the FillRule dependency property.

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

Identifies the Points dependency property.

Constructors

  • Polyline()
    Polyline()
    Polyline()
    Polyline()

    Initializes a new instance of the Polyline class.

    public Polyline()public New()Public Sub New()public Polyline()

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 FillRulepublic FillRule FillRule { get; set; }
    <Polyline FillRule="Nonzero"/>
    -or-
    <Polyline FillRule="EvenOdd"/>
    

    Property Value

  • 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 DependencyPropertypublic static DependencyProperty FillRuleProperty { get; }

    Property Value

  • 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 PointCollectionpublic PointCollection Points { get; set; }
    <Polyline Points="pointSet"/>
    

    Property Value

  • 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 DependencyPropertypublic static DependencyProperty PointsProperty { get; }

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.ActivatableAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.ThreadingAttribute
Windows.Foundation.Metadata.WebHostHiddenAttribute

Details

Assembly

Windows.UI.Xaml.Shapes.dll