如果指定的连接符的终点已连接到了某一图形上,则本属性为 msoTrue。MsoTriState 类型,只读。
MsoTriState 可为以下 MsoTriState 常量之一。 |
msoCTrue 不应用于本属性。 |
msoFalse 指定连接符的终点未连接到某一图形上。 |
msoTriStateMixed 不应用于本属性。 |
msoTriStateToggle 不应用于本属性。 |
msoTrue 指定连接符的终点已连接到某一图形上。 |
expression.EndConnected
expression 必需。该表达式返回“应用于”列表中的对象之一。
如果 myDocument
上的第三个图形是连接符,并且它的终点已连接到了某一图形上,则本示例将把连接站点的编号存储到变量 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