![]() |
![]() | Object Model Reference : Classes : L : Layer : Methods : Layer.CreateCurveSegment |
Function CreateCurveSegment(StartX As Double, StartY As Double, EndX As Double, EndY As Double, [StartingControlPointLength As Double = -1], [StartingControlPointAngle As Double], [EndingControlPointLength As Double = -1], [EndingControlPointAngle As Double]) As Shape
Member of Layer
The CreateCurveSegment method creates a single curve at a specified location on a layer.
The following VBA example creates a curve segment on the active layer. The starting point of the curve is (3, 3), and the ending point is (6, 6). The length of the starting and ending control points is 5, and the starting and ending angles of the control points are 45°.
Sub CurveCreate() |
ActiveLayer.CreateCurveSegment(3, 3, 6, 6, 5, 45, 5, 45) |
End Sub |
![]() |
![]() |
![]() |
Copyright 2013 Corel Corporation. All rights reserved.