Add_Line

Top  Previous  Next

 

Add_Line (Method)

 

This function 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

Is the x coordinate of the line segment's first point

y1

Single

Is the y coordinate of the line segment's first point

z1

Single

Is the z coordinate of the line segment's first point

x2

Single

Is the x coordinate of the line segment's end point

y2

Single

Is the y coordinate of the line segment's end point

z2

Single

Is the z coordinate of the line segment's end point

vItemProperties

Object

Is a string array with properties for the new object

iClr

Short

Is the color index number

iWidth

Short

Is the pen width

iStyle

Short

Is the line type

iLayer

Short

Is the layer number

 

Return value:

Integer - An Avax handle on success, zero on error.

 

Example