Add_Line
MethodAdd_Line (Method)
Adds a straight line segment
Syntax:
Function Add_Line(x1 As Single, y1 As Single, z1 As Single, x2 As Single, y2 As Single, z2 As Single, vItemProperties As Object, iClr As Short, iWidth As Short, iStyle As Short, iLayer As Short) As Integer
The Add_Line method syntax consists of the following:
Parameter |
Data Type |
Description |
x1 |
Single |
The x coordinate of the line segment's first point |
y1 |
Single |
The y coordinate of the line segment's first point |
z1 |
Single |
The z coordinate of the line segment's first point |
x2 |
Single |
The x coordinate of the line segment's end point |
y2 |
Single |
The y coordinate of the line segment's end point |
z2 |
Single |
The z coordinate of the line segment's end point |
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.