Add_Rectangle

Top  Previous  Next

 

Add_Rectangle (Method)

 

This function adds a rectangle into the drawing

 

Syntax:

Function Add_Rectangle(x0 As Single, y0 As Single, nWidth As Single, nHeight As Single, vItemProperties As Object, iClr As Short, iWidth As Short, iStyle As Short, iLayer As Short) As Integer

 

The Add_Rectangle method syntax consists of the following:

Parameter

Data Type

Description

x0

Single

Is the x coordinate of the bottom left point of the rectanngle

y0

Single

Is the y coordinate of the bottom left point of the rectangle

nWidth

Single

Is the width of the rectangle

nHeight

Single

Is the height of the rectangle

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