OneNote.InsertLocation enum
注解
使用方
- OneNote.Page: insertPageAsSibling
- OneNote.Paragraph: insertHtmlAsSibling, insertImageAsSibling, insertRichTextAsSibling, insertTableAsSibling
- OneNote.Section: insertSectionAsSibling
- OneNote.TableRow: insertRowAsSibling
示例
// Insert a new page as a sibling before the current page.
await OneNote.run(async (context) => {
const application = context.application;
const currentPage = application.getActivePage();
const insertedPage = currentPage.insertPageAsSibling(OneNote.InsertLocation.before, 'Rubric grading page');
await context.sync();
application.navigateToPage(insertedPage);
await context.sync();
});
字段
| after = "After" | |
| before = "Before" |