OneNote.InsertLocation enum

注解

API 集:OneNoteApi 1.1

使用方

示例

// 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"