Class LineFill | Apps Script | Google for Developers (original) (raw)
Class LineFill
Stay organized with collections Save and categorize content based on your preferences.
LineFill
Describes the fill of a line or outline
Methods
Method | Return type | Brief description |
---|---|---|
getFillType() | LineFillType | Gets the type of the line fill. |
getSolidFill() | SolidFill | Gets the solid fill of the line, or null if the fill type is not LineFillType.SOLID. |
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. |
Detailed documentation
getFillType()
Gets the type of the line fill.
Return
[LineFillType](/apps-script/reference/slides/line-fill-type)
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
getSolidFill()
Gets the solid fill of the line, or null
if the fill type is not [LineFillType.SOLID](/apps-script/reference/slides/line-fill-type#SOLID)
.
Return
[SolidFill](/apps-script/reference/slides/solid-fill)
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
setSolidFill(color)
Sets the solid fill to the given [Color](/apps-script/reference/slides/color)
.
Parameters
Name | Type | Description |
---|---|---|
color | Color |
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
setSolidFill(color, alpha)
Sets the solid fill to the given alpha and [Color](/apps-script/reference/slides/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
setSolidFill(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
setSolidFill(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
setSolidFill(hexString)
Sets the solid fill to the given hex color string.
The hex string must be in the format '#RRGGBB'. For example, pink would be represented as '#FFC0CB'.
Parameters
Name | Type | Description |
---|---|---|
hexString | 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
setSolidFill(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 would be represented as '#FFC0CB'.
Parameters
Name | Type | Description |
---|---|---|
hexString | 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
setSolidFill(color)
Sets the solid fill to the given [ThemeColorType](/apps-script/reference/slides/theme-color-type)
.
Parameters
Name | Type | Description |
---|---|---|
color | ThemeColorType |
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
setSolidFill(color, alpha)
Sets the solid fill to the given alpha and [ThemeColorType](/apps-script/reference/slides/theme-color-type)
.
Parameters
Name | Type | Description |
---|---|---|
color | ThemeColorType | |
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
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-03 UTC.