OneNoteNotebook
OfficeIMO.OneNote
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
- Method OneNoteNotebookReader.Read
- Method OneNotePackageReader.Read
Accepted by parameters 15
- Method OneNoteFileExtractor.Extract
- Method OneNoteImageExportExtensions.SaveAsImages
- Method OneNoteImageExportExtensions.SaveAsImagesAsync
- Method OneNoteImageExportExtensions.ToImages
- Method OneNoteImageExportExtensions.ToImages
- Method OneNoteImageExportExtensions.ToImagesAsync
- Extension method OneNoteNotebook.SaveAsImages
- Extension method OneNoteNotebook.SaveAsImagesAsync
- Extension method OneNoteNotebook.ToImages
- Extension method OneNoteNotebook.ToImages
- Extension method OneNoteNotebook.ToImagesAsync
- Method OneNoteNotebookWriter.Write
- Method OneNotePackageWriter.Write
- Method OneNotePageTraversal.Flatten
- Method OneNoteTableOfContentsWriter.Write
Constructors
public OneNoteNotebook() #Inherited Methods
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 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
- folderPath string
- options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeConversionReportpublic 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
- folderPath string
- options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeConversionReport>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
- format OfficeIMO.Drawing.OfficeImageExportFormat
- options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null
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
- options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
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
- format OfficeIMO.Drawing.OfficeImageExportFormat
- consumer OfficeIMO.Drawing.OfficeImageExportConsumer
- options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
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
- options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
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
- format OfficeIMO.Drawing.OfficeImageExportFormat
- options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
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
- format OfficeIMO.Drawing.OfficeImageExportFormat
- consumer OfficeIMO.Drawing.OfficeImageExportAsyncConsumer
- options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task