Class Polygon
Draws a polygon, which is a connected series of lines that form a closed shape.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Shapes
Assembly: OpenSilver.dll
Syntax
public sealed class Polygon : Shape, IFrameworkElement, IUIElement, IDependencyObject
Constructors
| Improve this Doc View SourcePolygon()
Initializes a new instance of the Polygon class.
Declaration
public Polygon()
Fields
| Improve this Doc View SourceFillRuleProperty
Identifies the FillRule dependency property.
Declaration
public static readonly DependencyProperty FillRuleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
PointsProperty
Identifies the Points dependency property.
Declaration
public static readonly DependencyProperty PointsProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceFillRule
Gets or sets a value that specifies how the interior fill of the shape is determined.
Declaration
public FillRule FillRule { get; set; }
Property Value
Type | Description |
---|---|
FillRule | A value of the enumeration. The default is EvenOdd. |
Points
Gets or sets a collection that contains the vertex points of the polygon.
Declaration
public PointCollection Points { get; set; }
Property Value
Type | Description |
---|---|
PointCollection | A collection of Point structures that describes the vertex points of the polygon. The default is null. The value can be expressed as a string as described in "pointSet Grammar" below. |