|
Add_ShapeRegularPolygon (Method)
This function adds a regular polygon shape with a specific fill type and z order
Syntax:
Function Add_ShapeRegularPolygon(xc As Single, yc As Single, R As Single, nVert As Integer, vItemProperties As Object, Fill_iType As Byte, Fill_lHatchIndex As Integer, Fill_iInForeColor As Short, Fill_iInBackColor As Short, Fill_sPattern As String, Fill_zOrder As Integer, Fill_lFlags As Integer, iClr As Short, iWidth As Short, iStyle As Short, iLayer As Short) As Integer
The Add_ShapeRegularPolygon method syntax consists of the following:
Parameter
|
Data Type
|
Description
|
xc
|
Single
|
Is the x coordinate of the polygon's center
|
yc
|
Single
|
Is the y coordinate of the polygon's center
|
R
|
Single
|
Is the radius of the circle contour of the polygon
|
nVert
|
Integer
|
Is the number of polygon's apexes
|
vItemProperties
|
Object
|
Is a string array with properties for the new object
|
Fill_iType
|
Byte
|
A Byte expression that defines the AvaxFillType
|
Fill_lHatchIndex
|
Integer
|
Is the fill hatch index
|
Fill_iInForeColor
|
Short
|
Is the stroke color
|
Fill_iInBackColor
|
Short
|
Is the fill color
|
Fill_sPattern
|
String
|
A String expression that defines the fill pattern's data (see also function CreateACADHatchPattern or CreateExVectorHatchPattern)
|
Fill_zOrder
|
Integer
|
Is the object's elevation in the whole drawing
|
Fill_lFlags
|
Integer
|
Is a numeric expresion which defines some more parameters (see also function CreatePatternFlags)
|
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.
Remarks:
For more details for the fill parameters see the example ShapeFill.vbp
Example
|