Excel.InsertShiftDirection enum
确定现有单元格的移动方向,以适应要插入的内容。
注解
示例
// 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();
});
字段
down = "Down" | |
right = "Right" |