Previous Document Next Document
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.

Parameters
Description
StartX
Defines the x-coordinate for the starting point of the line segment. This value is measured in document units.
StartY
Defines the y-coordinate for the starting point of the line segment. This value is measured in document units.
EndX
Defines the x-coordinate for the ending point of the line segment. This value is measured in document units.
EndY
Defines the y-coordinate for the ending point of the line segment. This value is measured in document units.

The following code example creates a line segment on the active layer:

Sub Test() 
 ActiveLayer.CreateLineSegment 1, 2, 5, 6 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.