OneNote.InsertLocation enum
Hinweise
Verwendet von
- OneNote.Page: insertPageAsSibling
- OneNote.Paragraph: insertHtmlAsSibling, insertImageAsSibling, insertRichTextAsSibling, insertTableAsGebling
- OneNote.Section: insertSectionAsSibling
- OneNote.TableRow:insertRowAsSibling
Beispiele
// 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();
});
Felder
| after = "After" | |
| before = "Before" |