Share via


ConnectorFormat.BeginConnected Property

Publisher Developer Reference

Returns an MsoTriState constant indicating whether the beginning of the specified connector is connected to a shape. Read-only.

Syntax

expression.BeginConnected

expression   A variable that represents a ConnectorFormat object.

Return Value
MsoTriState

Remarks

The BeginConnected property value can be one of the MsoTriState constants declared in the Microsoft Office type library.

Use the EndConnected property to determine if the end of a connector is connected to a shape.

Example

If the third shape on the first page in the active publication is a connector whose beginning is connected to a shape, this example stores the connection site number, stores a reference to the connected shape, and then disconnects the beginning of the connector from the shape.

Visual Basic for Applications
  Dim intSite As Integer
Dim shpConnected As Shape

With ActiveDocument.Pages(1).Shapes(3)

' Test whether shape is a connector.
If .Connector Then
    With .ConnectorFormat

        ' Test whether connector is connected to another shape.
        If .<strong>BeginConnected</strong> Then

            ' Store connection site number.
            intSite = .BeginConnectionSite

            ' Set reference to connected shape.
            Set shpConnected = .BeginConnectedShape

            ' Disconnect connector and shape.
            .BeginDisconnect
        End If
    End With
End If

End With

See Also