-
Notifications
You must be signed in to change notification settings - Fork 63
/
excel.closebehavior.yml
43 lines (33 loc) · 1.21 KB
/
excel.closebehavior.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
### YamlMime:TSEnum
name: Excel.CloseBehavior
uid: 'excel!Excel.CloseBehavior:enum'
package: excel!
fullName: Excel.CloseBehavior
summary: Specifies the close behavior for `Workbook.close`<!-- -->.
remarks: >-
\[ [API set: ExcelApi 1.9](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]
#### Examples
```TypeScript
// Link to full sample:
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/excel/50-workbook/workbook-save-and-close.yaml
await Excel.run(async (context) => {
context.workbook.close(Excel.CloseBehavior.skipSave);
});
```
isPreview: false
isDeprecated: false
fields:
- name: save
uid: 'excel!Excel.CloseBehavior.save:member'
package: excel!
summary: |-
Save the possible changes before closing the workbook.
* \[ [API set: ExcelApi 1.9](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]
value: '"Save"'
- name: skipSave
uid: 'excel!Excel.CloseBehavior.skipSave:member'
package: excel!
summary: |-
Discard the possible changes when closing the workbook.
* \[ [API set: ExcelApi 1.9](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]
value: '"SkipSave"'