Work with OneNote page content
- A Page object contains a collection of PageContent objects.
- A PageContent object contains a content type of Outline, Image, or Other.
- An Outline object contains a collection of Paragraph objects.
- A Paragraph object contains a content type of RichText, Image, Table, or Other.
To create an empty OneNote page, use one of the following methods:
Then use methods in the following objects to work with the page content, such as Page.addOutline and Outline.appendHtml.
The content and structure of a OneNote page are represented by HTML. Only a subset of HTML is supported for creating or updating page content, as described below.
Accessing page contents
You are only able to access Page Content via
Page#load for the currently
active page. To change the active page, invoke
Metadata such as title can still be queried for any page.