rectangle

Draw a rectangle.

Attributes

Attributes

Description

color

Sets the font color by the using RGB-triplet (#ffffff for white; #ff0000 for red, etc) or from list of the predefined colors below.

Type: String
Default Value: black
Predefined Values: black | blue| cyan | darkGray | gray | green | lightGray | magenta | orange | pink | red | white | yellow

draw

Sets the outline of the object to be visible. The outline is drawn using the color and stroke defined for the element.

Type: Boolean
Default: false

dynamic

A dynamic element increases the height of the element to fit the content of that element. Computing that dynamic height is expensive, so use it with care.

Type: Boolean
Default: false

fill

Fills the rectangle with the color defined by the color attribute.

Type: Boolean
Default: true

height

Determines the minimum height. Value is a whole number where each increment is equivalent to 1/72 of an inch or percentage.

Type: Integer
Default: If no height is specified, then height will be determine by all the objects contained.

href

Sets a hyperlink for the section.

Type: String

name

Used to reference the element later. Functions pick up elements by their name.

Type: String

reserved-literal

Determines the text printed when the text does not fit completely into an element.

Type: String
Default value: "..."

stroke-style

Defines how the lines of the shape get drawn.

Type: String
Default Value: solid
Predefined Values: solid | dashed | dotted | dot-dash | dot-dot-dash

trim-text-content

Defines, whether leading and trailing whitespaces of the generated lines get removed. Important for a clean layout.

Type: Boolean
Default Value: true

vertical-alignment

Sets the vertical position of the text.

Default Value: top
Values: top | middle | bottom

weight

Defines the width of the pen used to draw the outline of the rectangle.

Type: Boolean
Default Value: true

width

Set the horizontal width of the object. Width is required.

x

Defines the horizontal starting position an object defined by a value or percentage.

y

Defines the vertical starting position of an object defined by a value or percentage.