Project) (Shape.ConnectorFormat 属性

获取包含连接线格式属性的 ConnectorFormat 对象。 应用于表示连接线的 形状 。 只读 ConnectorFormat。

语法

表达式。ConnectorFormat

expression 一个代表 Shape 对象的变量。

备注

注意

在 Project 中,连接和断开连接方法不适用于 ConnectorFormat 对象。 因此,RerouteConnections 方法和 BeginConnected、BeginConnectedShape、BeginConnectedSite、EndConnected、EndConnectedShape 和 EndConnectedSite 属性没有意义。

例如,在以下代码段中, BeginConnect 方法给出运行时错误 13“类型不匹配”。

Set connectorShape = oReport.Shapes.AddConnector(msoConnectorCurve, 100, 250, 150, 280)

With connectorShape
    ' Type mismatch error:
    .ConnectorFormat.BeginConnect ConnectedShape:=oReport.Shapes(5), _
        ConnectionSite:=1
    .ConnectorFormat.EndConnect ConnectedShape:=oReport.Shapes(6),_
        ConnectionSite:=1
End With

属性值

CONNECTORFORMAT

另请参阅

形状对象AddConnector 方法ConnectorFormat

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。