AI-generated Key Takeaways
-
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.
The connection site on a Page
that can connect to a connector
.
Methods
Method | Return type | Brief description |
---|---|---|
get | Integer | Returns the index of the connection site. |
get | Page | Returns the Page 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 on the same page element.
In most cases, it corresponds to the predefined connection site index from the ECMA-376 standard. 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 Text Geometries" of "Office Open XML File Formats-Fundamentals and Markup Language Reference", part 1 of ECMA-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 following scopes:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
getPageElement()
Returns the Page
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 following scopes:
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations