共用方式為


PowerPoint) (ConnectorFormat.EndConnectedShape 屬性

會傳回 Shape 物件,代表指定之接點的終點所連到的圖案。 唯讀。

語法

expressionEndConnectedShape

表達 代表 ConnectorFormat 物件的 變數。

傳回值

圖形

註解

如果所指定接點的終點並未附加至圖案,此屬性就會產生錯誤。

範例

本範例假設使用中簡報的第一張投影片已經包含名為 「Conn1To2」 的連接器所連接的兩個圖案。程式碼會將矩形和連接器新增至第一張投影片。 新連接線的終點與名為 Conn1To2 之連接線的終點都會連到相同的連接位置,而新連接線的起點則會連到新矩形上的第一個連接位置。

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes
    Set r3 = .AddShape(msoShapeRectangle, 100, 420, 200, 100)
    .AddConnector(msoConnectorCurve, 0, 0, 10, 10) _
        .Name = "Conn1To3"

    With .Item("Conn1To2").ConnectorFormat
        endConnSite1 = .EndConnectionSite
        Set endConnShape1 = .EndConnectedShape
    End With

    With .Item("Conn1To3").ConnectorFormat
        .BeginConnect r3, 1
        .EndConnect endConnShape1, endConnSite1
    End With

End With

另請參閱

ConnectorFormat 物件

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應