-
Notifications
You must be signed in to change notification settings - Fork 63
/
excel.insertshiftdirection.yml
42 lines (32 loc) · 1.28 KB
/
excel.insertshiftdirection.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
### YamlMime:TSEnum
name: Excel.InsertShiftDirection
uid: 'excel!Excel.InsertShiftDirection:enum'
package: excel!
fullName: Excel.InsertShiftDirection
summary: Determines the direction in which existing cells will be shifted to accommodate what is being inserted.
remarks: >-
\[ [API set: ExcelApi 1.1](/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/42-range/insert-delete-clear-range.yaml
await Excel.run(async (context) => {
const sheet = context.workbook.worksheets.getItem("Sample");
const range = sheet.getRange("B4:E4");
range.insert(Excel.InsertShiftDirection.down);
await context.sync();
});
```
isPreview: false
isDeprecated: false
fields:
- name: down
uid: 'excel!Excel.InsertShiftDirection.down:member'
package: excel!
summary: '* \[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
value: '"Down"'
- name: right
uid: 'excel!Excel.InsertShiftDirection.right:member'
package: excel!
summary: '* \[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
value: '"Right"'