setValues(...)
This method modifies the Area object.
Required arguments
None.
Optional arguments
- area
An Area object from which attributes are to be copied.
- style
An AreaStyle object.
- border
A LineStyle object.
- positionMethod
A SymbolicConstant specifying how the area is positioned. Possible values are AUTO_ALIGN and MANUAL. The default value is AUTO_ALIGN.
- alignment
A SymbolicConstant specifying the relative position of the area in its parent when positionMethod=AUTO_ALIGN. Possible values are:
BOTTOM_LEFT
BOTTOM_CENTER
BOTTOM_RIGHT
CENTER_LEFT
CENTER
CENTER_RIGHT
TOP_LEFT
TOP_CENTER
TOP_RIGHT
The default value is BOTTOM_LEFT.
- sizeMethod
A SymbolicConstant specifying how the area size is defined. Possible values are AUTOMATIC and MANUAL. The default value is AUTOMATIC.
- originOffset
A pair of Floats specifying the X- and Y-offsets of the origin as a fraction of the available area. The originOffset argument is ignored unless positionMethod=MANUAL. The default value is (-1, 0). The valid range for each float is (0, 1).
- widthScale
A Float specifying the scale as a fraction of the width of the available area when the sizeMethod=MANUAL. The valid range is (0, 1). The default value is 1.0.
- heightScale
A Float specifying the scale as a fraction of the height of the available area when the sizeMethod=MANUAL. The valid range is (0, 1). The default value is 1.0.
- inset
A Boolean specifying whether the area is inset or occupies a reserved area. The default value is OFF.
- pl
A Float specifying the left padding of the area in mm. The default value is 1.0.
- pr
A Float specifying the right padding of the area in mm. The default value is 1.0.
- pt
A Float specifying the top padding of the area in mm. The default value is 1.0.
- pb
A Float specifying the bottom padding of the area in mm. The default value is 1.0.
Return value
None.
Exceptions
RangeError.