Previous Document Next Document

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


Layer.CreateFreeConnector

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

Description

Member of Layer

The CreateFreeConnector method creates, at a specified location on a layer, a connector line that is not connected to any shape.

 
See also the Layer.CreateConnector method.

Parameter
Description
x1
Specifies the x-coordinate for the starting point of the connector line. This value is measured in document units.
y1
Specifies the y-coordinate for the starting point of the connector line. This value is measured in document units.
x2
Specifies the x-coordinate for the ending point of the connector line. This value is measured in document units.
y2
Specifies the y-coordinate for the ending point of the connector line. This value is measured in document units.

VBA example

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