Previous Document Next Document
Layer.CreateFreeConnector

Function CreateFreeConnector(x1 As Double, y1 As Double, x2 As Double, y2 As Double) As Shape

Member of Layer

The CreateFreeConnector method creates a connector line that is not connected to any shape.

See also the CreateConnector method.

Parameters
Description
x1
Defines the x-coordinate for the starting point of the new connector line on the layer. This value is measured in document units.
y1
Defines the y-coordinate for the starting point of the new connector line on the layer. This value is measured in document units.
x2
Defines the x-coordinate for the ending point of the new connector line on the layer. This value is measured in document units.
y2
Defines the y-coordinate for the ending point of the new connector line on the layer. This value is measured in document units.

The following code example creates a free connector line on the active layer in the active document:

Sub LayerConnector() 
 ActiveLayer.CreateFreeConnector 2, 3, 6, 7 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.