LineFill

Describes the fill of a line or outline

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/slides/line-fill#getFillType()` | `https://developers.google.com/apps-script/reference/slides/line-fill-type` | Gets the type of the line fill. |
| `https://developers.google.com/apps-script/reference/slides/line-fill#getSolidFill()` | `https://developers.google.com/apps-script/reference/slides/solid-fill|null` | Gets the solid fill of the line, or `null` if the fill type is not `https://developers.google.com/apps-script/reference/slides/line-fill-type#SOLID`. |
| `https://developers.google.com/apps-script/reference/slides/line-fill#setSolidFill(Color)` | `void` | Sets the solid fill to the given `https://developers.google.com/apps-script/reference/slides/color`. |
| `https://developers.google.com/apps-script/reference/slides/line-fill#setSolidFill(Color,Number)` | `void` | Sets the solid fill to the given alpha and `https://developers.google.com/apps-script/reference/slides/color`. |
| `https://developers.google.com/apps-script/reference/slides/line-fill#setSolidFill(Integer,Integer,Integer)` | `void` | Sets the solid fill to the given RGB values. |
| `https://developers.google.com/apps-script/reference/slides/line-fill#setSolidFill(Integer,Integer,Integer,Number)` | `void` | Sets the solid fill to the given alpha and RGB values. |
| `https://developers.google.com/apps-script/reference/slides/line-fill#setSolidFill(String)` | `void` | Sets the solid fill to the given hex color string. |
| `https://developers.google.com/apps-script/reference/slides/line-fill#setSolidFill(String,Number)` | `void` | Sets the solid fill to the given alpha and hex color string. |
| `https://developers.google.com/apps-script/reference/slides/line-fill#setSolidFill(ThemeColorType)` | `void` | Sets the solid fill to the given `https://developers.google.com/apps-script/reference/slides/theme-color-type`. |
| `https://developers.google.com/apps-script/reference/slides/line-fill#setSolidFill(ThemeColorType,Number)` | `void` | Sets the solid fill to the given alpha and `https://developers.google.com/apps-script/reference/slides/theme-color-type`. |

## Detailed documentation

### `getFillType()`

Gets the type of the line fill.

#### Return


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

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

*** ** * ** ***

### `getSolidFill()`

Gets the solid fill of the line, or `null` if the fill type is not `https://developers.google.com/apps-script/reference/slides/line-fill-type#SOLID`.

#### Return


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

*** ** * ** ***

### `setSolidFill(color)`

Sets the solid fill to the given `https://developers.google.com/apps-script/reference/slides/color`.

#### Parameters

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

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

*** ** * ** ***

### `setSolidFill(color, alpha)`

Sets the solid fill to the given alpha and `https://developers.google.com/apps-script/reference/slides/color`.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `color` | `https://developers.google.com/apps-script/reference/slides/color` | The color to set. |
| `alpha` | `Number` | The alpha value (transparency). |

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

*** ** * ** ***

### `setSolidFill(red, green, blue)`

Sets the solid fill to the given RGB values.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `red` | `Integer` | The red component. |
| `green` | `Integer` | The green component. |
| `blue` | `Integer` | The blue component. |

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

*** ** * ** ***

### `setSolidFill(red, green, blue, alpha)`

Sets the solid fill to the given alpha and RGB values.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `red` | `Integer` | The red component. |
| `green` | `Integer` | The green component. |
| `blue` | `Integer` | The blue component. |
| `alpha` | `Number` | The alpha value (transparency). |

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

*** ** * ** ***

### `setSolidFill(hexString)`

Sets the solid fill to the given hex color string.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `hexString` | `String` | The hex color string. |

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

*** ** * ** ***

### `setSolidFill(hexString, alpha)`

Sets the solid fill to the given alpha and hex color string.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `hexString` | `String` | The hex color string. |
| `alpha` | `Number` | The alpha value (transparency). |

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

*** ** * ** ***

### `setSolidFill(color)`

Sets the solid fill to the given `https://developers.google.com/apps-script/reference/slides/theme-color-type`.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `color` | `https://developers.google.com/apps-script/reference/slides/theme-color-type` | The theme color type. |

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

*** ** * ** ***

### `setSolidFill(color, alpha)`

Sets the solid fill to the given alpha and `https://developers.google.com/apps-script/reference/slides/theme-color-type`.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `color` | `https://developers.google.com/apps-script/reference/slides/theme-color-type` | The theme color type. |
| `alpha` | `Number` | The alpha value (transparency). |

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