Add_ShapeLine
MethodAdd_ShapeLine (Method)
Adds a line segment. The difference from add_Line is that this line segment has z order
Syntax:
Function Add_ShapeLine(x1 As Single, y1 As Single, x2 As Single, y2 As Single, vItemProperties As Object, iClr As Short, iWidth As Short, iStyle As Short, iLayer As Short, Fill_zOrder As Integer) As Integer
The Add_ShapeLine 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 |
x2 |
Single |
The x coordinate of the line segment's end point |
y2 |
Single |
The y 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 |
Fill_zOrder |
Integer |
The object's elevation in the whole drawing |
Return value:
Integer - An Avax handle on success, zero on error.
Remarks:
Use the returned string as line type data for Avax line style definitions.