Class
OneNoteTableOfContentsWriter
OfficeIMO.OneNote
Creates native offline .onetoc2 table-of-contents files.
Inheritance
- object
- OneNoteTableOfContentsWriter
Methods
Write 3 overloads
public static byte[] Write(OneNoteNotebook notebook, OneNoteSaveOptions? options = null) #Serializes the root notebook hierarchy to a new byte array.
Parameters
- notebook OfficeIMO.OneNote.OneNoteNotebook
- options OfficeIMO.OneNote.OneNoteSaveOptions? = null
Returns
byte[]public static void Write(OneNoteNotebook notebook, Stream destination, OneNoteSaveOptions? options = null) #Serializes the root notebook hierarchy to a caller-owned stream.
Parameters
- notebook OfficeIMO.OneNote.OneNoteNotebook
- destination System.IO.Stream
- options OfficeIMO.OneNote.OneNoteSaveOptions? = null
public static void Write(OneNoteNotebook notebook, string path, OneNoteSaveOptions? options = null) #Serializes the root notebook hierarchy to a file.
Parameters
- notebook OfficeIMO.OneNote.OneNoteNotebook
- path string
- options OfficeIMO.OneNote.OneNoteSaveOptions? = null