Class ColorScheme

ColorScheme

A color scheme defines a mapping from members of ThemeColorType to the actual colors used to render them.

Methods

MethodReturn typeBrief description
getConcreteColor(theme)ColorReturns the concrete Color associated with the ThemeColorType in this color scheme.
getThemeColors()ThemeColorType[]Returns a list of all possible theme color types in a color scheme.

Detailed documentation

getConcreteColor(theme)

Returns the concrete Color associated with the ThemeColorType in this color scheme.

The returned color is guaranteed to not be an instance of ThemeColor.

Parameters

NameTypeDescription
themeThemeColorType

Return

Color


getThemeColors()

Returns a list of all possible theme color types in a color scheme.

Return

ThemeColorType[]

发送以下问题的反馈:

此网页
Apps Script
Apps Script