Class ConnectionSite Stay organized with collections Save and categorize content based on your preferences.
Page Summary
A ConnectionSite is a point on a PageElement that can connect to a connector.
The getIndex() method returns the unique index of a connection site among all connection sites on the same page element.
The getPageElement() method returns the PageElement that the connection site is located on.
The connection site on aPage that can connect to aconnector.
Methods
| Method | Return type | Brief description |
|---|---|---|
get | Integer | Returns the index of the connection site. |
get | Page | Returns thePage that the connection site is on. |
Detailed documentation
getIndex()
Returns the index of the connection site. The index is unique among all the connection sites onthe same page element.
In most cases, it corresponds to the predefined connection site index from the ECMA-376standard. More information on those connection sites can be found in the description of the"cnx" attribute in section 20.1.9.9 and Annex H. "Predefined DrawingML Shape and TextGeometries" of "Office Open XML File Formats-Fundamentals and Markup Language Reference", part1 ofECMA-376 5th edition.
Return
Integer — The index of the connection site.
Authorization
Scripts that use this method require authorization with one or more of the followingscopes:
https://www.googleapis.com/auth/presentations.currentonlyhttps://www.googleapis.com/auth/presentations
getPageElement()
Returns thePage that the connection site is on.
Return
Page — The page element of the connection site.
Authorization
Scripts that use this method require authorization with one or more of the followingscopes:
https://www.googleapis.com/auth/presentations.currentonlyhttps://www.googleapis.com/auth/presentations
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-11 UTC.