Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
Excel.VerticalAlignment enum
- Package:
- excel
Remarks
Used by
- Excel.CellPropertiesFormat: verticalAlignment
- Excel.RangeFormat: verticalAlignment
- Excel.Style: verticalAlignment
Examples
// 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();
});
Fields
| bottom = "Bottom" | |
| center = "Center" | |
| distributed = "Distributed" | |
| justify = "Justify" | |
| top = "Top" |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins
Feedback
Was this page helpful?
