Skip to main content
OfficeIMO Docs Search documentation/

Work with native OneNote sections, notebooks, tables of contents, and packages offline.

Install

dotnet add package OfficeIMO.OneNote

Read, edit, and save a section

using OfficeIMO.OneNote;

OneNoteSection section = OneNoteSectionReader.Read("Projects.one");
OneNotePage page = section.Pages[0];

var paragraph = new OneNoteParagraph();
paragraph.Runs.Add(new OneNoteTextRun { Text = "Added offline" });
page.DirectContent.Add(paragraph);

section.Save("Projects-updated.one");

Supported artifacts

ArtifactReadCreate and write
Desktop .one revision storeYesYes
FSSHTTP-encoded .oneYesYes
.onetoc2 notebook table of contentsYesYes
.onepkg notebook exportYesYes
Notebook directoryYesYes

Add OfficeIMO.OneNote.Markdown, .Html, or .Pdf for conversion, or OfficeIMO.Reader.OneNote for normalized extraction. See the OneNote API reference for storage and model details.