API Documentation > CorelDRAW > 2025-v26 > Layer > IVGLayer
Layer.CreatePolygon2 method
Creates a symmetrical polygon by using a center point and radius
Syntax:
Function CreatePolygon2(ByVal CenterX As Double, ByVal CenterY As Double, ByVal Radius As Double, ByVal Sides As Long, Optional ByVal Angle As Double = 0, Optional ByVal InnerRadius As Double = 0, Optional ByVal Star As Boolean = False, Optional ByVal Sharpness As Long = 0) As Shape
Parameters:
Name Type Description
CenterX
Double
CenterY
Double
Radius
Double
Sides
Long
Angle
Double
InnerRadius
Double
Star
Boolean
Specifies whether the polygon appears as a star shape.
Sharpness
Long
Specifies the sharpness of a star-shaped polygon. The maximum value of this property is determined by the number of sides that the star contains.
Remarks:
The CreatePolygon2 method creates a symmetical polygon, at a specified location on a layer, by using a center point and radius.