Add_Rectangle
MethodAdd_Rectangle (Method)
Adds a rectangle into the drawing
Syntax:
Function Add_Rectangle(x0 As Single, y0 As Single, nWidth As Single, nHeight As Single, vItemProperties As Object, iClr As Short, iWidth As Short, iStyle As Short, iLayer As Short) As Integer
The Add_Rectangle method syntax consists of the following:
Parameter |
Data Type |
Description |
x0 |
Single |
The x coordinate of the bottom left point of the rectangle |
y0 |
Single |
The y coordinate of the bottom left point of the rectangle |
nWidth |
Single |
The width of the rectangle |
nHeight |
Single |
The height of the rectangle |
vItemProperties |
Object |
A string array of properties for the new object |
iClr |
Short |
The color index number |
iWidth |
Short |
The pen width |
iStyle |
Short |
The line type |
iLayer |
Short |
The layer number |
Return value:
Integer - An Avax handle on success, zero on error.