取得一個包含連接器格式屬性的 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
屬性值
連接器格式
另請參閱
Shape 物件AddConnector 方法 ConnectorFormat
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。