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
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. |
Methods
| Improve this Doc View SourceCreateDomElement(Object, out Object)
Declaration
public override object CreateDomElement(object parentRef, out object domElementWhereToPlaceChildren)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parentRef | |
System.Object | domElementWhereToPlaceChildren |
Returns
Type | Description |
---|---|
System.Object |
Overrides
| Improve this Doc View SourceRedraw()
Declaration
protected override void Redraw()