Paragraph

A segment of text terminated by a newline character.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/slides/paragraph#getIndex()` | `Integer|null` | Returns the index of the paragraph's newline. |
| `https://developers.google.com/apps-script/reference/slides/paragraph#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 text in the paragraph ended by this object's newline character. |

## Detailed documentation

### `getIndex()`

Returns the index of the paragraph's newline. Returns `null` if the newline 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 text in the paragraph ended by this object's newline
character. Returns `null` if the paragraph's newline 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`