Class ConnectionSite
內容詳盡的說明文件
getIndex()
傳回連線網站的索引。在同一個網頁元素的所有連結網站中,索引都是不重複的。
在大多數情況下,這會對應至 ECMA-376 標準中預先定義的連線網站索引。如要進一步瞭解這些連線網站,請參閱第 20.1.9.9 節和附錄 H 中「cnx」屬性的說明。第 5 版 ECMA-376 規範第 1 部分「Office Open XML 檔案格式 - 基本概念和標記語言參考資料」中的「預先定義的 DrawingML 形狀和文字幾何圖形」。
回攻員
Integer
:連線網站的索引。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getPageElement()
傳回連線網站所在的 PageElement
。
回攻員
PageElement
:連結網站的網頁元素。
授權
使用這個方法的腳本需要具備下列一或多個範圍的授權:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-02 (世界標準時間)。
[null,null,["上次更新時間:2024-12-02 (世界標準時間)。"],[[["A connection site is a point on a PageElement where a connector can be attached."],["You can get the index of a connection site, which is unique within its PageElement, using `getIndex()`."],["`getPageElement()` allows you to retrieve the PageElement associated with a specific connection site."],["Connection sites often correspond to the ECMA-376 standard, allowing compatibility with various applications."]]],["A `ConnectionSite` on a `PageElement` can connect to a connector. It offers two methods: `getIndex()` and `getPageElement()`. `getIndex()` returns the site's unique index as an `Integer`, corresponding to the ECMA-376 standard. `getPageElement()` returns the `PageElement` the connection site belongs to. Both methods require specific authorization scopes like `presentations.currentonly` or `presentations`. The index is unique within the element's connection sites.\n"]]