Class LineFill

LineFill

Describes the fill of a line or outline

Methods

Method Return type Brief description
LineFillType Gets the type of the line fill.
SolidFill Gets the solid fill of the line, or null if the fill type is not LineFillType.SOLID .
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 ThemeColorType .
void Sets the solid fill to the given alpha and ThemeColorType .

Detailed documentation

getFillType()

Gets the type of the line fill.

Return

LineFillType

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

getSolidFill()

Gets the solid fill of the line, or null if the fill type is not LineFillType.SOLID .

Return

SolidFill

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 .

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 .

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 .

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 .

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