Class ConnectionSite
详细文档
getIndex()
返回连接点的索引。该编号在同一网页元素上的所有连接点中是唯一的。
在大多数情况下,它与 ECMA-376 标准中的预定义连接点索引相对应。如需详细了解这些连接点,请参阅第 20.1.9.9 节和附录 H 中对“cnx”属性的说明。ECMA-376 第 5 版第 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
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-02。
[null,null,["最后更新时间 (UTC):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"]]