A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developers.google.com/apps-script/reference/spreadsheet/color-builder below:

Class ColorBuilder | Apps Script

Class ColorBuilder

Stay organized with collections Save and categorize content based on your preferences.

Detailed documentation asRgbColor()

Converts this color to an RgbColor.

Return

RgbColor — The RGB color.

Throws

Error — if the color is not an RgbColor

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

asThemeColor()

Converts this color to a ThemeColor.

Return

ThemeColor — The theme color.

Throws

Error — if the color is not a ThemeColor.

Authorization

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

build()

Creates a color object from the settings supplied to the builder.

Return

Color — A color object created from this builder.

getColorType()

Get the type of this color.

Return

ColorType — The color type.

Authorization

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

setRgbColor(cssString)

Sets as RGB color.

Parameters Name Type Description cssString String The RGB color in CSS notation (such as '#ffffff'). Return

ColorBuilder — This builder, for chaining.

setThemeColor(themeColorType)

Sets as theme color.

Parameters Name Type Description themeColorType ThemeColorType The theme color type. Return

ColorBuilder — This builder, for chaining.

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-02 UTC.

[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-02 UTC."],[[["`ColorBuilder` facilitates the creation and customization of color objects within Google Sheets using Apps Script."],["Methods such as `setRgbColor()` and `setThemeColor()` are used to define the color, while `build()` generates the final `Color` object."],["`asRgbColor()` and `asThemeColor()` methods enable the conversion of the color to specific color types."],["`getColorType()` reveals the color's current type (RGB or Theme)."],["Several of these methods necessitate authorization with relevant scopes for access to spreadsheet data."]]],["ColorBuilder facilitates creating color objects using `SpreadsheetApp.newColor()`. It allows conversion to `RgbColor` or `ThemeColor`. Key actions include `build()` to create a color object, `getColorType()` to retrieve the color type, `setRgbColor(cssString)` to define an RGB color, and `setThemeColor(themeColorType)` to define a theme color. Methods may require specific authorization scopes like `spreadsheets.currentonly` or `spreadsheets`. The builder can be chained.\n"]]


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4