AI-generated Key Takeaways
-
Fill describes the background of a page element.
-
You can get the solid fill, fill type, and visibility status of a fill.
-
Solid fills can be set using Color objects, RGB values, hex strings, or ThemeColorType.
-
You can set the fill to transparent.
Describes the page element's background
Methods
| Method | Return type | Brief description |
|---|---|---|
Solid
|
Get the solid fill of this background, or null
if the fill type is not Fill
. |
|
Fill
|
Get the type of this fill. | |
Boolean
|
Whether the background is visible. | |
void
|
Sets the solid fill to the given Color
. |
|
void
|
Sets the solid fill to the given alpha and Color
. |
|
void
|
Sets the solid fill to the given RGB values. | |
void
|
Sets the solid fill to the given alpha and RGB values. | |
void
|
Sets the solid fill to the given hex color string. | |
void
|
Sets the solid fill to the given alpha and hex color string. | |
void
|
Sets the solid fill to the given Theme
. |
|
void
|
Sets the solid fill to the given alpha and Theme
. |
|
void
|
Sets the background to transparent. |
Detailed documentation
get
Solid
Fill()
Get the solid fill of this background, or null
if the fill type is not Fill
.
Return
Solid
— 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://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
get
Type()
is
Visible()
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://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set
Solid
Fill(color)
set
Solid
Fill(color, alpha)
Sets the solid fill to the given alpha and Color
.
Parameters
| Name | Type | Description |
|---|---|---|
color
|
Color
|
|
alpha
|
Number
|
Authorization
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set
Solid
Fill(red, green, blue)
Sets the solid fill to the given RGB values.
Parameters
| Name | Type | Description |
|---|---|---|
red
|
Integer
|
|
green
|
Integer
|
|
blue
|
Integer
|
Authorization
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set
Solid
Fill(red, green, blue, alpha)
Sets the solid fill to the given alpha and RGB values.
Parameters
| Name | Type | Description |
|---|---|---|
red
|
Integer
|
|
green
|
Integer
|
|
blue
|
Integer
|
|
alpha
|
Number
|
Authorization
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set
Solid
Fill(hexString)
Sets the solid fill to the given hex color string.
The hex string must be in the format '#RRGGBB'. For example, pink is represented as '#FFC0CB'.
Parameters
| Name | Type | Description |
|---|---|---|
hex
|
String
|
Authorization
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set
Solid
Fill(hexString, alpha)
Sets the solid fill to the given alpha and hex color string.
The hex string must be in the format '#RRGGBB'. For example, pink is represented as '#FFC0CB'.
Parameters
| Name | Type | Description |
|---|---|---|
hex
|
String
|
|
alpha
|
Number
|
Authorization
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set
Solid
Fill(color)
Sets the solid fill to the given Theme
.
Parameters
| Name | Type | Description |
|---|---|---|
color
|
Theme
|
Authorization
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set
Solid
Fill(color, alpha)
Sets the solid fill to the given alpha and Theme
.
Parameters
| Name | Type | Description |
|---|---|---|
color
|
Theme
|
|
alpha
|
Number
|
Authorization
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations
set
Transparent()
Sets the background to transparent.
Authorization
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/presentations.currentonly -
https://www.googleapis.com/auth/presentations

