Border

Describes the border around an element.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/slides/border#getDashStyle()` | `https://developers.google.com/apps-script/reference/slides/dash-style|null` | Gets the `https://developers.google.com/apps-script/reference/slides/dash-style` of the border. |
| `https://developers.google.com/apps-script/reference/slides/border#getLineFill()` | `https://developers.google.com/apps-script/reference/slides/line-fill` | Gets the `https://developers.google.com/apps-script/reference/slides/line-fill` of the border. |
| `https://developers.google.com/apps-script/reference/slides/border#getWeight()` | `Number|null` | Gets the thickness of the border in points. |
| `https://developers.google.com/apps-script/reference/slides/border#isVisible()` | `Boolean` | Gets whether the border is visible or not. |
| `https://developers.google.com/apps-script/reference/slides/border#setDashStyle(DashStyle)` | `https://developers.google.com/apps-script/reference/slides/border#` | Sets the `https://developers.google.com/apps-script/reference/slides/dash-style` of the border. |
| `https://developers.google.com/apps-script/reference/slides/border#setTransparent()` | `https://developers.google.com/apps-script/reference/slides/border#` | Sets the border to be transparent. |
| `https://developers.google.com/apps-script/reference/slides/border#setWeight(Number)` | `https://developers.google.com/apps-script/reference/slides/border#` | Sets the thickness of the border in points. |

## Detailed documentation

### `getDashStyle()`

Gets the `https://developers.google.com/apps-script/reference/slides/dash-style` of the border.

#### Return


`https://developers.google.com/apps-script/reference/slides/dash-style|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`

*** ** * ** ***

### `getLineFill()`

Gets the `https://developers.google.com/apps-script/reference/slides/line-fill` of the border.

#### Return


`https://developers.google.com/apps-script/reference/slides/line-fill`

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

*** ** * ** ***

### `getWeight()`

Gets the thickness of the border in points. Returns `null` if the element does not have a
border.

#### Return


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

*** ** * ** ***

### `isVisible()`

Gets whether the border is visible or not.

#### Return


`Boolean`

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

*** ** * ** ***

### `setDashStyle(style)`

Sets the `https://developers.google.com/apps-script/reference/slides/dash-style` of the border.

Setting a `https://developers.google.com/apps-script/reference/slides/dash-style` on a transparent border makes it visible.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `style` | `https://developers.google.com/apps-script/reference/slides/dash-style` | The dash style to set. |

#### Return


`https://developers.google.com/apps-script/reference/slides/border#` --- This `https://developers.google.com/apps-script/reference/slides/border#`, for chaining.

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

*** ** * ** ***

### `setTransparent()`

Sets the border to be transparent.

#### Return


`https://developers.google.com/apps-script/reference/slides/border#` --- This `https://developers.google.com/apps-script/reference/slides/border#`, for chaining.

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

*** ** * ** ***

### `setWeight(points)`

Sets the thickness of the border in points.

Setting a weight on a transparent border makes it visible.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `points` | `Number` | The border weight in points. |

#### Return


`https://developers.google.com/apps-script/reference/slides/border#` --- This `https://developers.google.com/apps-script/reference/slides/border#`, for chaining.

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