Share via


ConnectorFormat.EndConnected Property

Determines whether the end of the specified connector is connected to a shape. Read-only.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
ReadOnly Property EndConnected As MsoTriState
    Get
'Usage
Dim instance As ConnectorFormat
Dim value As MsoTriState

value = instance.EndConnected
MsoTriState EndConnected { get; }

Property Value

Type: Microsoft.Office.Core.MsoTriState
MsoTriState

Remarks

The value of the EndConnected property can be one of these MsoTriState constants.

Constant

Description

msoFalse

The end of the specified connector is not connected to a shape.

msoTrue

The end of the specified connector is connected to a shape.

Examples

If the end of the connector represented by shape three on the first slide in the active presentation is connected to a shape, this example stores the connection site number in the variable oldEndConnSite, stores a reference to the connected shape in the object variable oldEndConnShape, and then disconnects the end of the connector from the shape.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes(3)

    If .Connector Then

        With .ConnectorFormat

            If .EndConnectedThen

                oldEndConnSite = .EndConnectionSite

                Set oldEndConnShape = .EndConnectedShape

                .EndDisconnect

            End If

        End With

    End If

End With

See Also

Reference

ConnectorFormat Interface

ConnectorFormat Members

Microsoft.Office.Interop.PowerPoint Namespace