API Documentation > CorelDRAW > 2025-v26 > Shape > IVGShape
Shape.Connector property
Allows users to access the connector properties
Syntax:
Property Get Connector() As Connector
Remarks:
The Connector property returns a Connector object for connector shapes.
Examples:
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