AddRectangle Method
The AddRectangle method is used to create a rectangle or rounded rectangle. Returns an AutoRectangle object.
Syntax
object.AddRectangle( left, top, right, bottom, xRadius, yRadius, id )
Parameter | Type | Description |
left | Double | required, full path and file name of the data |
top | Double | required, top coordinate in page units |
right | Double | required, right coordinate in page units |
bottom | Double | required, bottom coordinate in page units |
xRadius | Variant | optional, default=0.0, X radius for rounded rectangle corner |
yRadius | Variant | optional, default=0.0, Y radius for rounded rectangle corner |
id | Variant | optional, rectangle name |
Remarks
If only xRadius or yRadius are used, a square-cornered rectangle results. Use both xRadius and yRadius to round the corners.
Example
This example shows how to create a rectangle.
Shapes.AddRectangle( 2, 5, 7, 2)
Used by: AutoShapes collection