Class Color

Color

A representation for a color.

Methods

Method Return type Brief description
Rgb Color Converts this color to an Rgb Color .
Theme Color Converts this color to a Theme Color .
Color Type Get the type of this color.

Detailed documentation

as Rgb Color()

Converts this color to an Rgb Color .

Return

Rgb Color — The RGB color.

Throws

Error — if the color is not an Rgb Color

Authorization

Scripts that use this method require authorization with one or more of the following scopes :

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

as Theme Color()

Converts this color to a Theme Color .

Return

Theme Color — The theme color.

Throws

Error — if the color is not a Theme Color .

Authorization

Scripts that use this method require authorization with one or more of the following scopes :

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets

get Color Type()

Get the type of this color.

Return

Color Type — The color type.

Authorization

Scripts that use this method require authorization with one or more of the following scopes :

  • https://www.googleapis.com/auth/spreadsheets.currentonly
  • https://www.googleapis.com/auth/spreadsheets
Design a Mobile Site
View Site in Mobile | Classic
Share by: