Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OneNoteNotebook

OfficeIMO.OneNote

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

A OneNote notebook with ordered section groups and sections.

Inheritance

  • object
  • OneNoteNotebook

Usage

Explore 17 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 15

Constructors

public OneNoteNotebook() #

Properties

public bool IsContentComplete { get; private set; } #

Whether the notebook was created in memory or its source hierarchy and section contents were loaded. Metadata-only reads, unread source members, and excluded source groups make this false.

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 uint? ColorArgb { get; set; } #

Notebook color encoded as ARGB, when present.

public bool? 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 OfficeConversionReport SaveAsImages(OneNoteNotebook document, string folderPath, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Saves selected images without retaining payloads and returns aggregate conversion evidence.

Parameters

document OfficeIMO.OneNote.OneNoteNotebook required
folderPath string required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

OfficeConversionReport
public static async Task<OfficeConversionReport> SaveAsImagesAsync(OneNoteNotebook document, string folderPath, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Asynchronously saves selected images, retaining paths and evidence rather than encoded payloads.

Parameters

document OfficeIMO.OneNote.OneNoteNotebook required
folderPath string required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<OfficeConversionReport>
ToImages 3 overloads
public static IReadOnlyList<OfficeImageExportResult> ToImages(OneNoteNotebook notebook, OfficeImageExportFormat format, OneNotePageBatchRenderingOptions? options = null) #

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

Parameters

notebook OfficeIMO.OneNote.OneNoteNotebook required
format OfficeIMO.Drawing.OfficeImageExportFormat required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional

Returns

IReadOnlyList<OfficeImageExportResult>
public static IReadOnlyList<OfficeImageExportResult> ToImages(OneNoteNotebook document, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Renders a batch using the encoding and selection in the options.

Parameters

document OfficeIMO.OneNote.OneNoteNotebook required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

IReadOnlyList<OfficeImageExportResult>
public static void ToImages(OneNoteNotebook document, OfficeImageExportFormat format, OfficeImageExportConsumer consumer, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Streams selected images under the shared deadline, admission and aggregate resource limits.

Parameters

document OfficeIMO.OneNote.OneNoteNotebook required
format OfficeIMO.Drawing.OfficeImageExportFormat required
consumer OfficeIMO.Drawing.OfficeImageExportConsumer required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional
ToImagesAsync 3 overloads
public static Task<IReadOnlyList<OfficeImageExportResult>> ToImagesAsync(OneNoteNotebook document, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Renders a batch asynchronously using the same options and evidence contract.

Parameters

document OfficeIMO.OneNote.OneNoteNotebook required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<IReadOnlyList<OfficeImageExportResult>>
public static Task<IReadOnlyList<OfficeImageExportResult>> ToImagesAsync(OneNoteNotebook document, OfficeImageExportFormat format, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Asynchronously exports selected images through the shared bounded streaming bridge.

Parameters

document OfficeIMO.OneNote.OneNoteNotebook required
format OfficeIMO.Drawing.OfficeImageExportFormat required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task<IReadOnlyList<OfficeImageExportResult>>
public static Task ToImagesAsync(OneNoteNotebook document, OfficeImageExportFormat format, OfficeImageExportAsyncConsumer consumer, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default) #

Asynchronously delivers selected images with backpressure and cooperative cancellation.

Parameters

document OfficeIMO.OneNote.OneNoteNotebook required
format OfficeIMO.Drawing.OfficeImageExportFormat required
consumer OfficeIMO.Drawing.OfficeImageExportAsyncConsumer required
options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional
cancellationToken System.Threading.CancellationToken = default optional

Returns

Task