AI-generated Key Takeaways
-
LineFill describes the fill of a line or outline.
-
You can get the type of line fill using
getFillType(). -
You can retrieve the solid fill of a line using
getSolidFill(), which returnsnullif the fill type is notLineFillType.SOLID. -
The solid fill can be set using various methods that accept different color representations and an optional alpha value.
-
All methods related to LineFill require authorization with either
https://www.googleapis.com/auth/presentations.currentonlyorhttps://www.googleapis.com/auth/presentationsscopes.
Describes the fill of a line or outline
Methods
| Method | Return type | Brief description |
|---|---|---|
Line
|
Gets the type of the line fill. | |
Solid
|
Gets the solid fill of the line, or null
if the fill type is not Line
. |
|
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
. |
Detailed documentation
get
Fill
Type()
Gets the type of the line fill.
Return
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
Solid
Fill()
Gets the solid fill of the line, or null
if the fill type is not Line
.
Return
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

