ShapeRange.Connector property (Publisher)

Returns an MsoTriState value indicating whether the specified shape is a connector. Read-only.

Syntax

expression.Connector

expression A variable that represents a ShapeRange object.

Remarks

The Connector property value can be one of the MsoTriState constants declared in the Microsoft Office type library and shown in the following table.

Constant Description
msoFalse The shape is not a connector.
msoTriStateMixed A return value indicating a combination of msoTrue and msoFalse for the specified shape range.
msoTrue The shape is a connector.

Example

This example deletes all connectors on page one of the active publication.

Dim i As Integer 
 
With ActiveDocument.Pages(1).Shapes 
 For i = .Count To 1 Step -1 
 With .Item(i) 
 If .Connector Then .Delete 
 End With 
 Next 
End With

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.