ConnectorFormat Interface

Contains properties and methods that apply to connectors.

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

Syntax

'Declaration
<GuidAttribute("0002443E-0000-0000-C000-000000000046")> _
<InterfaceTypeAttribute()> _
Public Interface ConnectorFormat
'Usage
Dim instance As ConnectorFormat
[GuidAttribute("0002443E-0000-0000-C000-000000000046")]
[InterfaceTypeAttribute()]
public interface ConnectorFormat

Remarks

A connector is a line that attaches two other shapes at points called connection sites. If you rearrange shapes that are connected, the geometry of the connector will be automatically adjusted so that the shapes remain connected.

Use the ConnectorFormat property to return a ConnectorFormat object. Use the BeginConnect and EndConnect methods to attach the ends of the connector to other shapes in the document. Use the RerouteConnections method to automatically find the shortest path between the two shapes connected by the connector. Use the Connector property to see whether a shape is a connector.

Note that you assign a size and a position when you add a connector to the Shapes collection, but the size and position are automatically adjusted when you attach the beginning and end of the connector to other shapes in the collection. Therefore, if you intend to attach a connector to other shapes, the initial size and position you specify are irrelevant. Likewise, you specify which connection sites on a shape to attach the connector to when you attach the connector, but using the RerouteConnections method after the connector is attached may change which connection sites the connector attaches to, making your original choice of connection sites irrelevant.

Connection sites are generally numbered according to the rules presented in the following table.

Shape type

Connection site numbering scheme

AutoShapes, WordArt, pictures, and OLE objects

The connection sites are numbered starting at the top and proceeding counterclockwise.

Freeforms

The connection sites are the vertices, and they correspond to the vertex numbers.

See Also

Reference

ConnectorFormat Members

Microsoft.Office.Interop.Excel Namespace