获取包含连接线格式属性的 ConnectorFormat 对象。 适用于表示一条或多条连接线的 ShapeRange 对象。 只读 ConnectorFormat。
语法
表达式。ConnectorFormat
表达式 表示 'ShapeRange' 对象的变量。
备注
注意
在 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
另请参阅
ShapeRange 对象AddConnector 方法ConnectorFormat 对象
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。