Object Model Reference : Classes : L : Layer : Methods : Layer.CreateLineSegment |
Function CreateLineSegment(StartX As Double, StartY As Double, EndX As Double, EndY As Double) As Shape
Member of Layer
The CreateLineSegment method creates a curve comprised of a single line segment at a specified location on a layer.
The following VBA example creates a line segment on the active layer.
Sub Test() |
ActiveLayer.CreateLineSegment 1, 2, 5, 6 |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.