API Reference

Class

OneNoteNotebook

Namespace OfficeIMO.OneNote
Assembly OfficeIMO.OneNote
Modifiers sealed

A OneNote notebook with ordered section groups and sections.

Inheritance

  • Object
  • OneNoteNotebook

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

Properties

public Nullable<Guid> Id { get; set; } #

Notebook identity when available. Serialization assigns and retains an identity for a new notebook.

public String Name { get; set; } #

Notebook display name.

public String SourcePath { get; set; } #

Source folder or package path.

public OneNoteStorageFormat TableOfContentsStorageFormat { get; set; } #

Physical encoding of the loaded root .onetoc2, or unknown for a new notebook.

public Nullable<UInt32> ColorArgb { get; set; } #

Notebook color encoded as ARGB, when present.

public Nullable<Boolean> HistoryEnabled { get; set; } #

Whether the notebook enables version history.

public IList<OneNoteSectionGroup> SectionGroups { get; } #

Top-level section groups in notebook order.

public IList<OneNoteSection> Sections { get; } #

Top-level sections in notebook order.

public IList<OneNoteOpaqueObject> UnknownObjects { get; } #

Opaque notebook objects preserved for loss-aware writing.

public IList<OneNoteDiagnostic> Diagnostics { get; } #

Diagnostics produced while loading the notebook.

Extension Methods

public static IReadOnlyList<OfficeImageExportResult> ExportImages(OneNoteNotebook notebook, OfficeImageExportFormat format, OneNotePageBatchRenderingOptions options = null) #
Returns: IReadOnlyList<OfficeImageExportResult>

Exports selected notebook pages using the shared five-format result contract.

Parameters

arg1 OfficeIMO.OneNote.OneNoteNotebook requiredposition: 0
arg2 OfficeIMO.Drawing.OfficeImageExportFormat requiredposition: 1
arg3 OfficeIMO.OneNote.OneNotePageBatchRenderingOptions = null optionalposition: 2
ToImages 2 overloads
public static OneNotePageImageBatchExportBuilder ToImages(OneNoteNotebook notebook) #
Returns: OneNotePageImageBatchExportBuilder

Starts batch PNG/JPEG/TIFF/SVG/WebP export for all notebook pages.

Parameters

notebook OfficeIMO.OneNote.OneNoteNotebook requiredposition: 0
public static OneNotePageImageBatchExportBuilder ToImages(OneNoteNotebook notebook, OneNotePageBatchRenderingOptions options) #
Returns: OneNotePageImageBatchExportBuilder

Starts batch export using a cloned options snapshot.

Parameters

notebook OfficeIMO.OneNote.OneNoteNotebook requiredposition: 0
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions requiredposition: 1