Table of contents
TOC
Collapse the table of content
Expand the table of content

ConnectorFormat.BeginConnected Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Returns an MsoTriStateconstant 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.

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 .BeginConnected 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 
© 2018 Microsoft