ConnectorFormat Interface
Contains properties and methods that apply to connectors.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
<GuidAttribute("91493481-5A91-11CF-8700-00AA0060263B")> _
Public Interface ConnectorFormat
'Usage
Dim instance As ConnectorFormat
[GuidAttribute("91493481-5A91-11CF-8700-00AA0060263B")]
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 or ConnectorFormat property of the Shape or ShapeRange type 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() or RerouteConnections() method of the Shape or ShapeRange type to automatically find the shortest path between the two shapes connected by the connector. Use the Connector or Connector property of the Shape or ShapeRange type 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() or RerouteConnections() method of the Shape or ShapeRange type 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. |