-
Notifications
You must be signed in to change notification settings - Fork 67
/
office.themeid.yml
48 lines (41 loc) · 1.39 KB
/
office.themeid.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
### YamlMime:TSEnum
name: Office.ThemeId
uid: 'office!Office.ThemeId:enum'
package: office!
fullName: Office.ThemeId
summary: >-
Specifies the Office theme that's currently selected.
For information on Office themes, see [Change the look and feel of Microsoft
365](https://support.microsoft.com/office/63e65e1c-08d4-4dea-820e-335f54672310)<!-- -->.
remarks: |-
#### Examples
```TypeScript
// The following example sets the color of a heading based on the current Office theme.
function setHeadingColor() {
// Identify the current Office theme in use.
const currentOfficeTheme = Office.context.officeTheme.themeId;
if (currentOfficeTheme === Office.ThemeId.Colorful) {
$("h1").css("color", "#1849ff");
}
...
}
```
isPreview: false
isDeprecated: false
fields:
- name: Black
uid: 'office!Office.ThemeId.Black:member'
package: office!
summary: The currently selected Office theme is **Black**.
- name: Colorful
uid: 'office!Office.ThemeId.Colorful:member'
package: office!
summary: The currently selected Office theme is **Colorful**.
- name: DarkGray
uid: 'office!Office.ThemeId.DarkGray:member'
package: office!
summary: The currently selected Office theme is **Dark Gray**.
- name: White
uid: 'office!Office.ThemeId.White:member'
package: office!
summary: The currently selected Office theme is **White**.