-
Notifications
You must be signed in to change notification settings - Fork 63
/
word.outlinelevel.yml
113 lines (94 loc) · 5.77 KB
/
word.outlinelevel.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
### YamlMime:TSEnum
name: Word.OutlineLevel
uid: 'word!Word.OutlineLevel:enum'
package: word!
fullName: Word.OutlineLevel
summary: Represents the outline levels.
remarks: >-
\[ [API set: WordApi 1.5](/javascript/api/requirement-sets/word/word-api-requirement-sets) \]
#### Examples
```TypeScript
// Link to full sample:
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/word/99-preview-apis/manage-custom-style.yaml
// Imports styles from JSON.
await Word.run(async (context) => {
const str =
'{"styles":[{"baseStyle":"Default Paragraph Font","builtIn":false,"inUse":true,"linked":false,"nameLocal":"NewCharStyle","priority":2,"quickStyle":true,"type":"Character","unhideWhenUsed":false,"visibility":false,"paragraphFormat":null,"font":{"name":"DengXian Light","size":16.0,"bold":true,"italic":false,"color":"#F1A983","underline":"None","subscript":false,"superscript":true,"strikeThrough":true,"doubleStrikeThrough":false,"highlightColor":null,"hidden":false},"shading":{"backgroundPatternColor":"#FF0000"}},{"baseStyle":"Normal","builtIn":false,"inUse":true,"linked":false,"nextParagraphStyle":"NewParaStyle","nameLocal":"NewParaStyle","priority":1,"quickStyle":true,"type":"Paragraph","unhideWhenUsed":false,"visibility":false,"paragraphFormat":{"alignment":"Centered","firstLineIndent":0.0,"keepTogether":false,"keepWithNext":false,"leftIndent":72.0,"lineSpacing":18.0,"lineUnitAfter":0.0,"lineUnitBefore":0.0,"mirrorIndents":false,"outlineLevel":"OutlineLevelBodyText","rightIndent":72.0,"spaceAfter":30.0,"spaceBefore":30.0,"widowControl":true},"font":{"name":"DengXian","size":14.0,"bold":true,"italic":true,"color":"#8DD873","underline":"Single","subscript":false,"superscript":false,"strikeThrough":false,"doubleStrikeThrough":true,"highlightColor":null,"hidden":false},"shading":{"backgroundPatternColor":"#00FF00"}},{"baseStyle":"Table Normal","builtIn":false,"inUse":true,"linked":false,"nextParagraphStyle":"NewTableStyle","nameLocal":"NewTableStyle","priority":100,"type":"Table","unhideWhenUsed":false,"visibility":false,"paragraphFormat":{"alignment":"Left","firstLineIndent":0.0,"keepTogether":false,"keepWithNext":false,"leftIndent":0.0,"lineSpacing":12.0,"lineUnitAfter":0.0,"lineUnitBefore":0.0,"mirrorIndents":false,"outlineLevel":"OutlineLevelBodyText","rightIndent":0.0,"spaceAfter":0.0,"spaceBefore":0.0,"widowControl":true},"font":{"name":"DengXian","size":20.0,"bold":false,"italic":true,"color":"#D86DCB","underline":"None","subscript":false,"superscript":false,"strikeThrough":false,"doubleStrikeThrough":false,"highlightColor":null,"hidden":false},"tableStyle":{"allowBreakAcrossPage":true,"alignment":"Left","bottomCellMargin":0.0,"leftCellMargin":0.08,"rightCellMargin":0.08,"topCellMargin":0.0,"cellSpacing":0.0},"shading":{"backgroundPatternColor":"#60CAF3"}}]}';
const styles = context.document.importStylesFromJson(str);
await context.sync();
console.log("Styles imported from JSON:", styles);
});
```
isPreview: false
isDeprecated: false
fields:
- name: outlineLevel1
uid: 'word!Word.OutlineLevel.outlineLevel1:member'
package: word!
summary: |-
Represents outline level 1.
* \[ [API set: WordApi 1.5](/javascript/api/requirement-sets/word/word-api-requirement-sets) \]
value: '"OutlineLevel1"'
- name: outlineLevel2
uid: 'word!Word.OutlineLevel.outlineLevel2:member'
package: word!
summary: |-
Represents outline level 2.
* \[ [API set: WordApi 1.5](/javascript/api/requirement-sets/word/word-api-requirement-sets) \]
value: '"OutlineLevel2"'
- name: outlineLevel3
uid: 'word!Word.OutlineLevel.outlineLevel3:member'
package: word!
summary: |-
Represents outline level 3.
* \[ [API set: WordApi 1.5](/javascript/api/requirement-sets/word/word-api-requirement-sets) \]
value: '"OutlineLevel3"'
- name: outlineLevel4
uid: 'word!Word.OutlineLevel.outlineLevel4:member'
package: word!
summary: |-
Represents outline level 4.
* \[ [API set: WordApi 1.5](/javascript/api/requirement-sets/word/word-api-requirement-sets) \]
value: '"OutlineLevel4"'
- name: outlineLevel5
uid: 'word!Word.OutlineLevel.outlineLevel5:member'
package: word!
summary: |-
Represents outline level 5.
* \[ [API set: WordApi 1.5](/javascript/api/requirement-sets/word/word-api-requirement-sets) \]
value: '"OutlineLevel5"'
- name: outlineLevel6
uid: 'word!Word.OutlineLevel.outlineLevel6:member'
package: word!
summary: |-
Represents outline level 6.
* \[ [API set: WordApi 1.5](/javascript/api/requirement-sets/word/word-api-requirement-sets) \]
value: '"OutlineLevel6"'
- name: outlineLevel7
uid: 'word!Word.OutlineLevel.outlineLevel7:member'
package: word!
summary: |-
Represents outline level 7.
* \[ [API set: WordApi 1.5](/javascript/api/requirement-sets/word/word-api-requirement-sets) \]
value: '"OutlineLevel7"'
- name: outlineLevel8
uid: 'word!Word.OutlineLevel.outlineLevel8:member'
package: word!
summary: |-
Represents outline level 8.
* \[ [API set: WordApi 1.5](/javascript/api/requirement-sets/word/word-api-requirement-sets) \]
value: '"OutlineLevel8"'
- name: outlineLevel9
uid: 'word!Word.OutlineLevel.outlineLevel9:member'
package: word!
summary: |-
Represents outline level 9.
* \[ [API set: WordApi 1.5](/javascript/api/requirement-sets/word/word-api-requirement-sets) \]
value: '"OutlineLevel9"'
- name: outlineLevelBodyText
uid: 'word!Word.OutlineLevel.outlineLevelBodyText:member'
package: word!
summary: |-
Represents outline level body text, not an outline level.
* \[ [API set: WordApi 1.5](/javascript/api/requirement-sets/word/word-api-requirement-sets) \]
value: '"OutlineLevelBodyText"'