Project) (Shape.ConnectorFormat 屬性

取得包含連接器格式設定屬性的 ConnectorFormat 物件。 適用於代表連接器的 圖形 。 唯讀 ConnectorFormat。

語法

運算式。ConnectorFormat

expression 一個用於表示 Shape 物件的變數。

註解

注意事項

在 Project 中,connect 和 disconnect 方法不適用於 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 支援與意見反應。