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 | 代表用於超連結的顏色。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-02 (世界標準時間)。
[null,null,["上次更新時間: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"]]