OneNote.InsertLocation enum
Remarques
Utilisateur
- OneNote.Page : insertPageAsSibling
- OneNote.Paragraphe : insertHtmlAsSibling, insertImageAsSibling, insertRichTextAsSibling, insertTableAsSibling
- OneNote.Section : insertSectionAsSibling
- OneNote.TableRow : insertRowAsSibling
Exemples
// 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();
});
Champs
| after = "After" | |
| before = "Before" |