Previous Document Next Document

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


Layer.CreateLineSegment

Function CreateLineSegment(StartX As Double, StartY As Double, EndX As Double, EndY As Double) As Shape

Description

Member of Layer

The CreateLineSegment method creates a curve comprised of a single line segment at a specified location on a layer.

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

VBA example

The following VBA 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 2013 Corel Corporation. All rights reserved.