TGML Polygon
The <Polygon> element describes a polygon, which is a connected series of lines that forms a closed shape. The end point does not have to be specified. The polygon is closed automatically.
Attribute | Type | Description |
---|---|---|
Fill |
Brush |
Specifies how the interior of the shape is painted. |
Opacity |
Double |
A value between "0.0" (transparent) and "1.0" (opaque) |
Points |
Array of Point |
The vertex points of the polyline: |
Stroke |
Brush |
Describes how the line is painted. |
StrokeDashArray |
Array of Double |
The pattern of dashes and gaps used to outline shapes: |
StrokeWidth |
Double |
The width of the outline of a line. |
Visibility | Visibility |
Specifies if the element is visible or not. |
Example:
<TGML>
<Polygon Points="50.0,150.0 100.0,50.0 150.0,150.0" Stroke="#0000FF" Fill="#FFFF00"/>
</TGML>
Example on screen: