/
excel.verticalalignment.yml
58 lines (49 loc) · 1.91 KB
/
excel.verticalalignment.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
### YamlMime:TSEnum
name: Excel.VerticalAlignment
uid: 'excel!Excel.VerticalAlignment:enum'
package: excel!
fullName: Excel.VerticalAlignment
summary: ''
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/style.yaml
await Excel.run(async (context) => {
let worksheet = context.workbook.worksheets.getItem("Sample");
let range = worksheet.getRange("A1:E1");
// Apply new style.
range.style = ("Diagonal Orientation Style");
range.format.verticalAlignment = "Justify";
await context.sync();
});
```
isPreview: false
isDeprecated: false
fields:
- name: bottom
uid: 'excel!Excel.VerticalAlignment.bottom:member'
package: excel!
summary: '* \[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
value: '"Bottom"'
- name: center
uid: 'excel!Excel.VerticalAlignment.center:member'
package: excel!
summary: '* \[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
value: '"Center"'
- name: distributed
uid: 'excel!Excel.VerticalAlignment.distributed:member'
package: excel!
summary: '* \[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
value: '"Distributed"'
- name: justify
uid: 'excel!Excel.VerticalAlignment.justify:member'
package: excel!
summary: '* \[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
value: '"Justify"'
- name: top
uid: 'excel!Excel.VerticalAlignment.top:member'
package: excel!
summary: '* \[ [API set: ExcelApi 1.1](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
value: '"Top"'