如果该属性值为 msoTrue,则指定的连接符的端点已连接到了某一形状上。 只读 MsoTriState。
语法
表达式。EndConnected
表达式 表示 ConnectorFormat 对象的变量。
示例
如果 myDocument 上由形状 3 表示的连接线的端点连接到某个形状,则此示例会将连接站点号存储在变量 oldEndConnSite中 ,在对象变量 oldEndConnShape中存储对已连接形状的引用 ,然后断开连接线的末端与形状的连接。
Set myDocument = Worksheets(1)
With myDocument.Shapes(3)
If .Connector Then
With .ConnectorFormat
If .EndConnected Then
oldEndConnSite = .EndConnectionSite
Set oldEndConnShape = .EndConnectedShape
.EndDisconnect
End If
End With
End If
End With
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。