Add_ShapePolyLine

Top  Previous  Next

 

Add_ShapePolyLine (Method)

 

This function adds a polyline. The difference from add_Polyline is that this polyline has z order

 

Syntax:

Function Add_ShapePolyLine(xV() As Single, yV() As Single, zV() As Single, vItemProperties As Object, iClr As Short, iWidth As Short, iStyle As Short, iLayer As Short, Fill_zOrder As Integer, PolylineType As AvaxPolylineType) As Integer

 

The Add_ShapePolyLine method syntax consists of the following:

Parameter

Data Type

Description

xV()

Single

An array for the x coordinates of the poline's apexes

yV()

Single

An array for the y coordinates of the poline's apexes

zV()

Single

An array for the z coordinates of the poline's apexes

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

Fill_zOrder

Integer

Is the object's elevation in the whole drawing

PolylineType

AvaxPolylineType

An expression that defines the AvaxPolylineType

 

Return value:

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

 

Remarks:

For more details for the fill parameters see the example ShapeFill.vbp

 

Example