# Class Fill

Fill

Describes the page element's background

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `getSolidFill()` | `SolidFill|null` | Get the solid fill of this background, or `null` if the fill type is not `FillType.SOLID`. |
| `getType()` | `FillType` | Get the type of this fill. |
| `isVisible()` | `Boolean` | Whether the background is visible. |
| `setSolidFill(color)` | `void` | Sets the solid fill to the given `Color`. |
| `setSolidFill(color, alpha)` | `void` | Sets the solid fill to the given alpha and `Color`. |
| `setSolidFill(red, green, blue)` | `void` | Sets the solid fill to the given RGB values. |
| `setSolidFill(red, green, blue, alpha)` | `void` | Sets the solid fill to the given alpha and RGB values. |
| `setSolidFill(hexString)` | `void` | Sets the solid fill to the given hex color string. |
| `setSolidFill(hexString, alpha)` | `void` | Sets the solid fill to the given alpha and hex color string. |
| `setSolidFill(color)` | `void` | Sets the solid fill to the given `ThemeColorType`. |
| `setSolidFill(color, alpha)` | `void` | Sets the solid fill to the given alpha and `ThemeColorType`. |
| `setTransparent()` | `void` | Sets the background to transparent. |

## Detailed documentation

### `getSolidFill()`

Get the solid fill of this background, or `null` if the fill type is not `FillType.SOLID`.

#### Return


`SolidFill|null` --- The solid fill setting, or `null` if this fill type is not solid.

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

*** ** * ** ***

### `getType()`

Get the type of this fill.

#### Return


`FillType` --- The type of this 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.md.txt#setting_explicit_scopes):

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

*** ** * ** ***

### `isVisible()`

Whether the background is visible.

#### Return


`Boolean` --- `true` if the background is visible; `false` otherwise.

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

*** ** * ** ***

### `setSolidFill(color)`

Sets the solid fill to the given `Color`.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `color` | `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.md.txt#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 `Color`.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `color` | `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.md.txt#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.md.txt#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.md.txt#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.md.txt#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.md.txt#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 `ThemeColorType`.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `color` | `ThemeColorType` | 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.md.txt#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 `ThemeColorType`.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `color` | `ThemeColorType` | 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.md.txt#setting_explicit_scopes):

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

*** ** * ** ***

### `setTransparent()`

Sets the background to transparent.

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