Rectangle object
- Last UpdatedJul 26, 2024
- 1 minute read
The following elements can be specified for a rectangle element.
|
Elements |
Description |
|---|---|
|
FillColor |
Fill color of a rectangle. Specified with a color element. Default is rgb(212, 208, 200). |
|
Pen |
Pen element. |
|
Dimension |
Location and size of an object. Elements are top, left, width, height. Top, left, width, and height values are pixels. The resulting coordinates must be within -32000 and +32000. Both width and height cannot be zero. Required. An object is not created if the Dimension element is assigned invalid values or is missing values. |
|
Title |
Object name. Optional. |
|
AnimationLinks |
Optional animation links list. |
Example:
<Rectangle>
<Title>Rectangle1</Title>
<Pen>
<PenColor><Name>Black</Name></PenColor>
<PenWidth>4</PenWidth>
<PenStyle>Solid</PenStyle>
</Pen>
<Dimension>
<Left>100</Left> <Top>50</Top>
<Width>270</Width> <Height>80</Height>
</Dimension>
<FillColor>
<R>128</R> <G>128</G> <B>128</B>
</FillColor>
<AnimationLinks> </AnimationLinks>
</Rectangle>
Minimal example:
<Rectangle>
<Dimension>
<Left>100</Left><Top>50</Top>
<Width>270</Width><Height>80</Height>
</Dimension>
</Rectangle>