Skip to content

Latest commit

 

History

History
66 lines (36 loc) · 1.45 KB

PowerPoint.ShapeRange.ConnectorFormat.md

File metadata and controls

66 lines (36 loc) · 1.45 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ShapeRange.ConnectorFormat property (PowerPoint)
vbapp10.chm548021
vbapp10.chm548021
PowerPoint.ShapeRange.ConnectorFormat
30d41f5e-3bd5-b8ed-cba9-9de8b7567a98
06/08/2017
medium

ShapeRange.ConnectorFormat property (PowerPoint)

Returns a ConnectorFormat object that contains connector formatting properties. Applies to Shape or ShapeRange objects that represent connectors. Read-only.

Syntax

expression.ConnectorFormat

expression A variable that represents a ShapeRange object.

Return value

ConnectorFormat

Example

This example adds two rectangles to myDocument, attaches them with a connector, automatically reroutes the connector along the shortest path, and then detaches the connector from the rectangles.

Set myDocument = ActivePresentation.Slides(1)

Set s = myDocument.Shapes

Set firstRect = s.AddShape(msoShapeRectangle, 100, 50, 200, 100)

Set secondRect = s.AddShape(msoShapeRectangle, 300, 300, 200, 100)

With s.AddConnector(msoConnectorCurve, 0, 0, 0, 0).ConnectorFormat

    .BeginConnect firstRect, 1

    .EndConnect secondRect, 1

    .Parent.RerouteConnections

    .BeginDisconnect

    .EndDisconnect

End With

See also

ShapeRange Object

[!includeSupport and feedback]