polygon Element

The polygon element creates a polygon with the points defined as its children. A polygon is always closed. For example, if the polygon consists of three points, it will be a triangle. Two points in a polygon will draw a line.

Syntax

<polygon id="objectId" [lineStyle="lineStyleId"] [fillStyle="fillStyleId"] [fillTransform="transform"]>


   <!-- Defining polygon points -->
   ...


</polygon>

Attributes

Name

Description

Value type

Optional

Default Value

id

Object identifier

id

no

-

lineStyle

Line style element id (from styles collection)

string

yes

-

fillStyle

Fill style element id (from styles collection)

string

yes

-

closed

If true polygon is automatically closed

boolean

yes

true

fillTransform

Transforms shape fill style (rotate, scale, move, skew) using using script-style transformation notation.

transform

yes

-

Parent Elements

objects collection

Child Elements

point element

See Also

XML Schema Reference, objects collection.