Add_ShapeLine

Top  Previous  Next

 

Add_ShapeLine (Method)

 

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

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

y1

Single

Is the y 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

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

 

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