Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OneNoteNotebookReader

OfficeIMO.OneNote

Namespace
OfficeIMO.OneNote
Assembly
OfficeIMO.OneNote
Source revision
be6c300e4ab1 with working tree changes
Modifiers
static

Reads a local OneNote notebook hierarchy from .onetoc2 files and sibling sections.

Inheritance

  • object
  • OneNoteNotebookReader

Methods

Read 2 overloads
public static OneNoteNotebook Read(string tableOfContentsPath, OneNoteNotebookReaderOptions? options = null) #

Reads a notebook from a local .onetoc2 file or a directory containing a root TOC.

Parameters

tableOfContentsPath string required
options OfficeIMO.OneNote.OneNoteNotebookReaderOptions? = null optional
public static OneNoteNotebook Read(Stream tableOfContentsStream, string sourceName = "Open Notebook.onetoc2", OneNoteNotebookReaderOptions? options = null) #

Reads the root hierarchy from a caller-owned .onetoc2 stream. Because a standalone stream cannot resolve sibling files, returned sections and groups contain TOC metadata only.

Parameters

tableOfContentsStream System.IO.Stream required
sourceName string = "Open Notebook.onetoc2" optional
options OfficeIMO.OneNote.OneNoteNotebookReaderOptions? = null optional