AutoText

An element of text that is dynamically replaced with content that can change over time, such as a
slide number.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/slides/auto-text#getAutoTextType()` | `https://developers.google.com/apps-script/reference/slides/auto-text-type|null` | Returns the type of auto text. |
| `https://developers.google.com/apps-script/reference/slides/auto-text#getIndex()` | `Integer|null` | Returns the index of the auto text. |
| `https://developers.google.com/apps-script/reference/slides/auto-text#getRange()` | `https://developers.google.com/apps-script/reference/slides/text-range|null` | Returns a `https://developers.google.com/apps-script/reference/slides/text-range` spanning the auto text. |

## Detailed documentation

### `getAutoTextType()`

Returns the type of auto text. Returns `null` if the auto text has been deleted.

#### Return


`https://developers.google.com/apps-script/reference/slides/auto-text-type|null`

#### 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`

*** ** * ** ***

### `getIndex()`

Returns the index of the auto text. Returns `null` if the auto text has been deleted.

#### Return


`Integer|null`

#### 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`

*** ** * ** ***

### `getRange()`

Returns a `https://developers.google.com/apps-script/reference/slides/text-range` spanning the auto text. Returns `null` if the auto text has
been deleted.

#### Return


`https://developers.google.com/apps-script/reference/slides/text-range|null`

#### 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`