Enum ThemeColorType
主题颜色类型
一个枚举,用于描述主题中支持的各种颜色条目。
如需调用枚举,您可以调用其父类、名称和属性。例如
SpreadsheetApp.ThemeColorType.TEXT
。
属性
属性 | 类型 | 说明 |
UNSUPPORTED | Enum | 表示不受支持的主题颜色。 |
TEXT | Enum | 表示文本颜色。 |
BACKGROUND | Enum | 表示要用于图表背景的颜色。 |
ACCENT1 | Enum | 表示第一个强调色。 |
ACCENT2 | Enum | 表示第二种强调色。 |
ACCENT3 | Enum | 表示第三种强调色。 |
ACCENT4 | Enum | 表示第四种强调色。 |
ACCENT5 | Enum | 表示第五种强调色。 |
ACCENT6 | Enum | 表示第六种强调色。 |
HYPERLINK | Enum | 表示要为超链接使用的颜色。 |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-12-02。
[null,null,["最后更新时间 (UTC):2024-12-02。"],[[["`ThemeColorType` is an enum used to define various color entries within themes in Google Apps Script."],["It includes properties like `TEXT`, `BACKGROUND`, `ACCENT1` through `ACCENT6`, and `HYPERLINK` to represent different color aspects."],["To use a specific color, call it using the parent class, name, and property, such as `SpreadsheetApp.ThemeColorType.TEXT`."],["The `UNSUPPORTED` property represents theme colors that are not supported."]]],["`ThemeColorType` is an enum that defines color entries for themes. It includes `UNSUPPORTED`, `TEXT`, `BACKGROUND`, and six accent colors (`ACCENT1` to `ACCENT6`). Other colors are `HYPERLINK`, which is for hyperlinks. The enum is called using the parent class, name, and property (e.g., `SpreadsheetApp.ThemeColorType.TEXT`). Each property represents a specific color within a theme.\n"]]