square Element

The square element creates a square with the attributes described below.

Syntax

<square id="objectId" x="xPosition" y="yPosition" size="sideSize"
            [lineStyle="lineStyleId"] [fillStyle="fillStyleId"] [fillTransform="transform"]
/>

Attributes

Name

Description

Value type

Optional

Default Value

id

Object identifier

string

no

-

x

Absolute x position (in pixels or twips)

coordinate

no

-

y

Absolute y position (in pixels or twips)

coordinate

no

-

size

Square size (in pixels or twips)

coordinate

no

-

lineStyle

Line style element id (from styles collection)

string

yes

-

fillStyle

Fill style element id (from styles collection)

string

yes

-

fillTransform

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

transform

yes

-

Parent Elements

objects collection

See Also

XML Schema Reference, objects collection.