-
Notifications
You must be signed in to change notification settings - Fork 63
/
excel.shapescaletype.yml
41 lines (33 loc) · 1.31 KB
/
excel.shapescaletype.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
### YamlMime:TSEnum
name: Excel.ShapeScaleType
uid: 'excel!Excel.ShapeScaleType:enum'
package: excel!
fullName: Excel.ShapeScaleType
summary: Specifies whether the shape is scaled relative to its original or current size.
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/44-shape/shape-move-and-order.yaml
await Excel.run(async (context) => {
const sheet = context.workbook.worksheets.getItem("Shapes");
const shape = sheet.shapes.getItem("Octagon")
shape.lockAspectRatio = true;
shape.scaleHeight(1.25, Excel.ShapeScaleType.currentSize);
await context.sync();
});
```
isPreview: false
isDeprecated: false
fields:
- name: currentSize
uid: 'excel!Excel.ShapeScaleType.currentSize:member'
package: excel!
summary: '* \[ [API set: ExcelApi 1.9](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
value: '"CurrentSize"'
- name: originalSize
uid: 'excel!Excel.ShapeScaleType.originalSize:member'
package: excel!
summary: '* \[ [API set: ExcelApi 1.9](/javascript/api/requirement-sets/excel/excel-api-requirement-sets) \]'
value: '"OriginalSize"'