Previous Document Next Document

Object Model Reference : Classes : L : Layer : Methods : Layer.CreatePolygon2


Layer.CreatePolygon2

Function CreatePolygon2(CenterX As Double, CenterY As Double, Radius As Double, Sides As Long, [Angle As Double], [InnerRadius As Double], [Star As Boolean = False], [Sharpness As Long]) As Shape

Description

Member of Layer

The CreatePolygon2 method creates a symmetical polygon, at a specified location on a layer, by using a center point and radius.

Parameter
Description
CenterX
Specifies the x-coordinate of the center point
CenterY
Specifies the y-coordinate of the center point
Radius
Specifies the radius of the polygon
Sides
Specifies the number of sides in the polygon, from 3 to 500.
Angle
This parameter is optional, and its default value is 0.
InnerRadius
This parameter is optional, and its default value is 0.
Star
Specifies whether the polygon appears as a star shape. This parameter is optional, and its default value is False.
Sharpness
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. This parameter is optional, and its default value is 0.

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.