ConnectionSite

The connection site on a `PageElement` that can connect to a `https://developers.google.com/apps-script/reference/slides/line#isConnector()`.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/slides/connection-site#getIndex()` | `Integer` | Returns the index of the connection site. |
| `https://developers.google.com/apps-script/reference/slides/connection-site#getPageElement()` | `https://developers.google.com/apps-script/reference/slides/page-element` | Returns the `PageElement` 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](https://ecma-international.org/publications-and-standards/standards/ecma-376/).

#### 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://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/presentations.currentonly`
- `https://www.googleapis.com/auth/presentations`

*** ** * ** ***

### `getPageElement()`

Returns the `PageElement` that the connection site is on.

#### Return


`https://developers.google.com/apps-script/reference/slides/page-element` --- The page element of the connection site.

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes):

- `https://www.googleapis.com/auth/presentations.currentonly`
- `https://www.googleapis.com/auth/presentations`