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):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003e\u003ccode\u003eThemeColorType\u003c/code\u003e is an enum used to define various color entries within themes in Google Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties like \u003ccode\u003eTEXT\u003c/code\u003e, \u003ccode\u003eBACKGROUND\u003c/code\u003e, \u003ccode\u003eACCENT1\u003c/code\u003e through \u003ccode\u003eACCENT6\u003c/code\u003e, and \u003ccode\u003eHYPERLINK\u003c/code\u003e to represent different color aspects.\u003c/p\u003e\n"],["\u003cp\u003eTo use a specific color, call it using the parent class, name, and property, such as \u003ccode\u003eSpreadsheetApp.ThemeColorType.TEXT\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eUNSUPPORTED\u003c/code\u003e property represents theme colors that are not supported.\u003c/p\u003e\n"]]],["`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"],null,["# Enum ThemeColorType\n\nThemeColorType\n\nAn enum which describes various color entries supported in themes.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.ThemeColorType.TEXT`. \n\n### Properties\n\n| Property | Type | Description |\n|---------------|--------|-----------------------------------------------------|\n| `UNSUPPORTED` | `Enum` | Represents a theme color that is not supported. |\n| `TEXT` | `Enum` | Represents the text color. |\n| `BACKGROUND` | `Enum` | Represents the color to use for chart's background. |\n| `ACCENT1` | `Enum` | Represents the first accent color. |\n| `ACCENT2` | `Enum` | Represents the second accent color. |\n| `ACCENT3` | `Enum` | Represents the third accent color. |\n| `ACCENT4` | `Enum` | Represents the fourth accent color. |\n| `ACCENT5` | `Enum` | Represents the fifth accent color. |\n| `ACCENT6` | `Enum` | Represents the sixth accent color. |\n| `HYPERLINK` | `Enum` | Represents the color to use for hyperlinks. |"]]