# Class Border

Border

Describes the border around an element.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `getDashStyle()` | `DashStyle|null` | Gets the `DashStyle` of the border. |
| `getLineFill()` | `LineFill` | Gets the `LineFill` of the border. |
| `getWeight()` | `Number|null` | Gets the thickness of the border in points. |
| `isVisible()` | `Boolean` | Gets whether the border is visible or not. |
| `setDashStyle(style)` | `Border` | Sets the `DashStyle` of the border. |
| `setTransparent()` | `Border` | Sets the border to be transparent. |
| `setWeight(points)` | `Border` | Sets the thickness of the border in points. |

## Detailed documentation

### `getDashStyle()`

Gets the `DashStyle` of the border.

#### Return


`DashStyle|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.md.txt#setting_explicit_scopes):

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

*** ** * ** ***

### `getLineFill()`

Gets the `LineFill` of the border.

#### Return


`LineFill`

#### Authorization

Scripts that use this method require authorization with one or more of the following [scopes](https://developers.google.com/apps-script/concepts/scopes.md.txt#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.md.txt#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.md.txt#setting_explicit_scopes):

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

*** ** * ** ***

### `setDashStyle(style)`

Sets the `DashStyle` of the border.

Setting a `DashStyle` on a transparent border makes it visible.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `style` | `DashStyle` | The dash style to set. |

#### Return


`Border` --- This `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.md.txt#setting_explicit_scopes):

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

*** ** * ** ***

### `setTransparent()`

Sets the border to be transparent.

#### Return


`Border` --- This `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.md.txt#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


`Border` --- This `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.md.txt#setting_explicit_scopes):

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