Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OneNoteNotebook

Namespace OfficeIMO.OneNote
Assembly OfficeIMO.OneNote
Source revision 804a7612eee4 with working tree changes
Modifiers sealed

A OneNote notebook with ordered section groups and sections.

Inheritance

  • Object
  • OneNoteNotebook

Usage

Explore 10 API references to this type

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

Returned or exposed by 2

Accepted by parameters 8

Constructors

public OneNoteNotebook() #

Properties

public 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; internal set; } #

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

public UInt32? ColorArgb { get; set; } #

Notebook color encoded as ARGB, when present.

public 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

notebook OfficeIMO.OneNote.OneNoteNotebook requiredposition: 0
format OfficeIMO.Drawing.OfficeImageExportFormat requiredposition: 1
options 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