Previous Document Next Document

Object Model Reference : Classes : S : Shape : Properties : Shape.Connector


Shape.Connector

Property Connector As Connector

Description

Member of Shape

The Connector property returns a Connector object for connector shapes.

The Connector property returns a read-only value.

VBA example

The following VBA example creates a rectangle and an ellipse. It then creates a connector line and attaches it to the centers of the rectangle and ellipse.

Sub Test()
Dim r As Shape, e As Shape, c As Shape
Set r = ActiveLayer.CreateRectangle(0, 0, 2, 2)
Set e = ActiveLayer.CreateEllipse2(4, 2, 1)
Set c = ActiveLayer.CreateFreeConnector(1, 0, 4, 0)
c.Connector.StartPoint = r.SnapPoints(4) ' Center of rectangle
c.Connector.EndPoint = e.SnapPoints(3) ' Center of ellipse
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.