# OneNoteSection

A OneNote section and its ordered pages.

Class 

`OfficeIMO.OneNote`

**Namespace**

`OfficeIMO.OneNote`

**Assembly**

`OfficeIMO.OneNote`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OneNoteSection.History.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteSection.History.cs#L12)

**Implements**

`IDisposable`

**Modifiers**

sealed

A OneNote section and its ordered pages.

## Inheritance

- object
- OneNoteSection

## Guides & Samples

Authored walkthroughs and practical samples linked to this API.

- [Read and Write OneNote Notebooks](/docs/onenote/notebooks/) Guide
  
  Open OneNote notebooks from a folder, a .onetoc2 file or a .onepkg export, walk section groups and sections, and write notebooks offline.
- [Read and Edit OneNote Files](/docs/onenote/) Guide
  
  Open OneNote .one section files offline in .NET, list pages and their text, add notes, lists and tags, and create new sections without OneNote, Graph or COM.
- [Convert OneNote to PDF, HTML, Markdown and Images](/docs/onenote/export-and-convert/) Guide
  
  Convert OneNote sections and notebooks to PDF, HTML or Markdown, render pages to PNG, TIFF or SVG images, and extract chunks for search, all offline.
- [OfficeIMO.OneNote](/products/onenote/) Guide
  
  Read, create, edit, and write native OneNote sections, notebooks, tables of contents, and packages offline. Compare packages, examples, and limits.
- [Read and Convert OneNote Files Offline in .NET](/solutions/offline-onenote-automation/) Guide
  
  Read native OneNote .one, .onetoc2, and .onepkg files offline in .NET, then export pages to images, HTML, Markdown, PDF, or search chunks.

## 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 5

- Property [OneNoteNotebook.Sections](/api/onenote/officeimo-onenote-onenotenotebook/#property-sections)
- Property [OneNotePageReference.Section](/api/onenote/officeimo-onenote-onenotepagereference/#property-section)
- Method [OneNoteSection.Create](/api/onenote/officeimo-onenote-onenotesection/#method-create)
- Method [OneNoteSection.Load](/api/onenote/officeimo-onenote-onenotesection/#method-load-string-officeimo-onenote-onenoteloadoptions)
- Property [OneNoteSectionGroup.Sections](/api/onenote/officeimo-onenote-onenotesectiongroup/#property-sections)

### Accepted by parameters 12

- Method [OneNoteFileExtractor.Extract](/api/onenote/officeimo-onenote-onenotefileextractor/#method-extract-officeimo-onenote-onenotesection-string-officeimo-onenote-onenotefileextractionoptions-threading-cancellationtoken) parameter `section`
- Method [OneNoteImageExportExtensions.SaveAsImages](/api/onenote/officeimo-onenote-onenoteimageexportextensions/#method-saveasimages-officeimo-onenote-onenotesection-string-officeimo-onenote-onenotepagebatchrenderingoptions-threading-cancellationtoken) parameter `document`
- Method [OneNoteImageExportExtensions.SaveAsImagesAsync](/api/onenote/officeimo-onenote-onenoteimageexportextensions/#method-saveasimagesasync-officeimo-onenote-onenotesection-string-officeimo-onenote-onenotepagebatchrenderingoptions-threading-cancellationtoken) parameter `document`
- Method [OneNoteImageExportExtensions.ToImages](/api/onenote/officeimo-onenote-onenoteimageexportextensions/#method-toimages-officeimo-onenote-onenotesection-officeimo-drawing-officeimageexportformat-officeimo-drawing-officeimageexportconsumer-officeimo-onenote-onenotepagebatchrenderingoptions-threading-cancellationtoken) parameter `document`
- Method [OneNoteImageExportExtensions.ToImages](/api/onenote/officeimo-onenote-onenoteimageexportextensions/#method-toimages-officeimo-onenote-onenotesection-officeimo-drawing-officeimageexportformat-officeimo-onenote-onenotepagebatchrenderingoptions) parameter `section`
- Method [OneNoteImageExportExtensions.ToImagesAsync](/api/onenote/officeimo-onenote-onenoteimageexportextensions/#method-toimagesasync-officeimo-onenote-onenotesection-officeimo-drawing-officeimageexportformat-officeimo-onenote-onenotepagebatchrenderingoptions-threading-cancellationtoken) parameter `document`
- Method [OneNotePageTraversal.Flatten](/api/onenote/officeimo-onenote-onenotepagetraversal/#method-flatten-officeimo-onenote-onenotesection) parameter `section`
- Extension method [OneNoteSection.SaveAsImages](/api/onenote/officeimo-onenote-onenotesection/#extension-saveasimages-officeimo-onenote-onenotesection-string-officeimo-onenote-onenotepagebatchrenderingoptions-threading-cancellationtoken) parameter `document`
- Extension method [OneNoteSection.SaveAsImagesAsync](/api/onenote/officeimo-onenote-onenotesection/#extension-saveasimagesasync-officeimo-onenote-onenotesection-string-officeimo-onenote-onenotepagebatchrenderingoptions-threading-cancellationtoken) parameter `document`
- Extension method [OneNoteSection.ToImages](/api/onenote/officeimo-onenote-onenotesection/#extension-toimages-officeimo-onenote-onenotesection-officeimo-onenote-onenotepagebatchrenderingoptions-threading-cancellationtoken) parameter `document`
- Extension method [OneNoteSection.ToImages](/api/onenote/officeimo-onenote-onenotesection/#extension-toimages-officeimo-onenote-onenotesection-officeimo-drawing-officeimageexportformat-officeimo-onenote-onenotepagebatchrenderingoptions) parameter `section`
- Extension method [OneNoteSection.ToImagesAsync](/api/onenote/officeimo-onenote-onenotesection/#extension-toimagesasync-officeimo-onenote-onenotesection-officeimo-drawing-officeimageexportformat-officeimo-drawing-officeimageexportasyncconsumer-officeimo-onenote-onenotepagebatchrenderingoptions-threading-cancellationtoken) parameter `document`

Filter members 

Show inherited

## Constructors

`public OneNoteSection()` [#](#constructor-ctor)

[OneNoteNotebook.cs:98](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteNotebook.cs#L98)

## Methods

Create 2 overloads

`public static OneNoteSection Create()` [#](#method-create)

[OneNoteSection.Lifecycle.cs:8](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteSection.Lifecycle.cs#L8)

Creates an empty native section in memory.

Returns

`OneNoteSection`

`public static OneNoteSection Create(string path)` [#](#method-create-string)

[OneNoteSection.Lifecycle.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteSection.Lifecycle.cs#L12)

Creates an empty section associated with a path without writing it.

Parameters

**path string required**

Returns

`OneNoteSection`

`public void Dispose()` [#](#method-dispose)

[OneNoteSection.Lifecycle.cs:34](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteSection.Lifecycle.cs#L34)

Completes this managed section's lifetime; no source file or caller stream is retained.

`public IReadOnlyList<OneNoteRevision> GetPageRevisions(OneNotePage page)` [#](#method-getpagerevisions-officeimo-onenote-onenotepage)

[OneNoteSection.History.cs:12](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteSection.History.cs#L12)

Lists the revisions of a page's content that the loaded file still retains, in the order they were committed. The revision that produced the page's current content has [OneNoteRevision.IsCurrent](/api/onenote/officeimo-onenote-onenoterevision/) set. A section that was not loaded from a file has no retained revisions.

Parameters

**page OfficeIMO.OneNote.OneNotePage required**

Returns

`IReadOnlyList<OneNoteRevision>`

Load 2 overloads

`public static OneNoteSection Load(string path, OneNoteLoadOptions? options = null)` [#](#method-load-string-officeimo-onenote-onenoteloadoptions)

[OneNoteSection.Lifecycle.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteSection.Lifecycle.cs#L18)

Loads a native section and associates its filesystem path for subsequent saves.

Parameters

**path string required**

**options OfficeIMO.OneNote.OneNoteLoadOptions? = null optional**

Returns

`OneNoteSection`

`public static OneNoteSection Load(Stream stream, OneNoteLoadOptions? options = null)` [#](#method-load-io-stream-officeimo-onenote-onenoteloadoptions)

[OneNoteSection.Lifecycle.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteSection.Lifecycle.cs#L24)

Loads a native section from a caller-owned seekable stream, without a path association.

Parameters

**stream System.IO.Stream required**

**options OfficeIMO.OneNote.OneNoteLoadOptions? = null optional**

Returns

`OneNoteSection`

`public OneNotePage LoadPageRevision(OneNotePage page, OneNoteRevision revision)` [#](#method-loadpagerevision-officeimo-onenote-onenotepage-officeimo-onenote-onenoterevision)

[OneNoteSection.History.cs:27](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteSection.History.cs#L27)

Reads a page as it was at revision, one of the revisions [OneNoteSection.GetPageRevisions](/api/onenote/officeimo-onenote-onenotesection/) returns. The result is a separate copy with that revision's content and metadata; conflict pages and version history are not included. A revision whose content is encrypted, or that no longer holds the page, cannot be read.

Parameters

**page OfficeIMO.OneNote.OneNotePage required**

**revision OfficeIMO.OneNote.OneNoteRevision required**

Returns

`OneNotePage`

Save 3 overloads

`public void Save(string path, OneNoteSaveOptions? options = null)` [#](#method-save-string-officeimo-onenote-onenotesaveoptions)

[OneNoteNotebook.cs:142](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteNotebook.cs#L142)

Writes this section to an offline .one file.

Parameters

**path string required**

**options OfficeIMO.OneNote.OneNoteSaveOptions? = null optional**

`public void Save(OneNoteSaveOptions? options = null)` [#](#method-save-officeimo-onenote-onenotesaveoptions)

[OneNoteSection.Lifecycle.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteSection.Lifecycle.cs#L28)

Saves to the last successful path load or save.

Parameters

**options OfficeIMO.OneNote.OneNoteSaveOptions? = null optional**

`public void Save(Stream destination, OneNoteSaveOptions? options = null)` [#](#method-save-io-stream-officeimo-onenote-onenotesaveoptions)

[OneNoteSection.Lifecycle.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteSection.Lifecycle.cs#L31)

Writes a native section at the caller stream's current position and leaves it open.

Parameters

**destination System.IO.Stream required**

**options OfficeIMO.OneNote.OneNoteSaveOptions? = null optional**

`public byte[] ToBytes(OneNoteSaveOptions? options = null)` [#](#method-tobytes-officeimo-onenote-onenotesaveoptions)

[OneNoteNotebook.cs:147](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteNotebook.cs#L147)

Serializes this section as an offline .one payload.

Parameters

**options OfficeIMO.OneNote.OneNoteSaveOptions? = null optional**

Returns

`byte[]`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public bool IsContentComplete { get; internal set; }` [#](#property-iscontentcomplete)

[OneNoteNotebook.cs:98](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteNotebook.cs#L98)

Whether this section contains loaded pages or was created in memory. An unread TOC placeholder is incomplete.

`public uint? TableOfContentsOrder { get; set; }` [#](#property-tableofcontentsorder)

[OneNoteNotebook.cs:104](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteNotebook.cs#L104)

Relative navigation order among sibling sections and section groups when loaded from or written to a notebook TOC. Items without an explicit order follow ordered items in their collection order.

`public Guid? Id { get; set; }` [#](#property-id)

[OneNoteNotebook.cs:107](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteNotebook.cs#L107)

Section identity when available. Serialization assigns and retains an identity for a new section.

`public string Name { get; set; }` [#](#property-name)

[OneNoteNotebook.cs:110](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteNotebook.cs#L110)

Section display name.

`public string? SourcePath { get; set; }` [#](#property-sourcepath)

[OneNoteNotebook.cs:113](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteNotebook.cs#L113)

Source .one path or package entry.

`public OneNoteStorageFormat StorageFormat { get; internal set; }` [#](#property-storageformat)

[OneNoteNotebook.cs:116](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteNotebook.cs#L116)

Physical encoding of the loaded section, or unknown for a newly created section.

`public uint? ColorArgb { get; set; }` [#](#property-colorargb)

[OneNoteNotebook.cs:119](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteNotebook.cs#L119)

Section color encoded as ARGB, when present.

`public string? SensitivityLabelInfo { get; set; }` [#](#property-sensitivitylabelinfo)

[OneNoteNotebook.cs:126](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteNotebook.cs#L126)

Sensitivity label metadata (the LabelInfo XML) of a section protected by a label that does not encrypt it, or null. Saving writes a section without the label, so the writer refuses a section that still has this value; set it to null to save the content without the label.

`public IList<OneNotePage> Pages { get; }` [#](#property-pages)

[OneNoteNotebook.cs:129](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteNotebook.cs#L129)

Ordered top-level pages and subpages.

`public IList<OneNoteRevision> Revisions { get; }` [#](#property-revisions)

[OneNoteNotebook.cs:132](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteNotebook.cs#L132)

Revision metadata associated with the section object space.

`public IList<OneNoteOpaqueObject> UnknownObjects { get; }` [#](#property-unknownobjects)

[OneNoteNotebook.cs:135](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteNotebook.cs#L135)

Opaque section objects preserved for loss-aware writing.

`public IList<OneNoteDiagnostic> Diagnostics { get; }` [#](#property-diagnostics)

[OneNoteNotebook.cs:138](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteNotebook.cs#L138)

Diagnostics produced while loading the section.

`public string? FilePath { get; private set; }` [#](#property-filepath)

[OneNoteSection.Lifecycle.cs:5](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNoteSection.Lifecycle.cs#L5)

Gets the associated filesystem path, separate from package-entry provenance in SourcePath.

## Extension Methods

`public static OfficeConversionReport SaveAsImages(OneNoteSection document, string folderPath, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default)` [#](#extension-saveasimages-officeimo-onenote-onenotesection-string-officeimo-onenote-onenotepagebatchrenderingoptions-threading-cancellationtoken)

[OneNoteSection.ImageBatchConversion.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Imaging/OneNoteSection.ImageBatchConversion.cs#L24)

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

Parameters

**document OfficeIMO.OneNote.OneNoteSection required**

**folderPath string required**

**options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`OfficeConversionReport`

`public static async Task<OfficeConversionReport> SaveAsImagesAsync(OneNoteSection document, string folderPath, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default)` [#](#extension-saveasimagesasync-officeimo-onenote-onenotesection-string-officeimo-onenote-onenotepagebatchrenderingoptions-threading-cancellationtoken)

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

Parameters

**document OfficeIMO.OneNote.OneNoteSection 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(OneNoteSection section, OfficeImageExportFormat format, OneNotePageBatchRenderingOptions? options = null)` [#](#extension-toimages-officeimo-onenote-onenotesection-officeimo-drawing-officeimageexportformat-officeimo-onenote-onenotepagebatchrenderingoptions)

[OneNoteImageExportExtensions.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Imaging/OneNoteImageExportExtensions.cs#L24)

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

Parameters

**section OfficeIMO.OneNote.OneNoteSection required**

**format OfficeIMO.Drawing.OfficeImageExportFormat required**

**options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional**

Returns

`IReadOnlyList<OfficeImageExportResult>`

`public static IReadOnlyList<OfficeImageExportResult> ToImages(OneNoteSection document, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default)` [#](#extension-toimages-officeimo-onenote-onenotesection-officeimo-onenote-onenotepagebatchrenderingoptions-threading-cancellationtoken)

[OneNoteSection.ImageBatchConversion.cs:10](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Imaging/OneNoteSection.ImageBatchConversion.cs#L10)

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

Parameters

**document OfficeIMO.OneNote.OneNoteSection required**

**options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`IReadOnlyList<OfficeImageExportResult>`

`public static void ToImages(OneNoteSection document, OfficeImageExportFormat format, OfficeImageExportConsumer consumer, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default)` [#](#member-e3e7885882c4b83d905a7ca5)

[OneNoteSection.ImageBatchConversion.cs:63](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Imaging/OneNoteSection.ImageBatchConversion.cs#L63)

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

Parameters

**document OfficeIMO.OneNote.OneNoteSection 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(OneNoteSection document, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default)` [#](#extension-toimagesasync-officeimo-onenote-onenotesection-officeimo-onenote-onenotepagebatchrenderingoptions-threading-cancellationtoken)

[OneNoteSection.ImageBatchConversion.cs:17](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Imaging/OneNoteSection.ImageBatchConversion.cs#L17)

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

Parameters

**document OfficeIMO.OneNote.OneNoteSection required**

**options OfficeIMO.OneNote.OneNotePageBatchRenderingOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<IReadOnlyList<OfficeImageExportResult>>`

`public static Task<IReadOnlyList<OfficeImageExportResult>> ToImagesAsync(OneNoteSection document, OfficeImageExportFormat format, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default)` [#](#extension-toimagesasync-officeimo-onenote-onenotesection-officeimo-drawing-officeimageexportformat-officeimo-onenote-onenotepagebatchrenderingoptions-threading-cancellationtoken)

[OneNoteSection.ImageBatchConversion.cs:47](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Imaging/OneNoteSection.ImageBatchConversion.cs#L47)

Asynchronously exports selected images through the shared bounded streaming bridge.

Parameters

**document OfficeIMO.OneNote.OneNoteSection 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(OneNoteSection document, OfficeImageExportFormat format, OfficeImageExportAsyncConsumer consumer, OneNotePageBatchRenderingOptions? options = null, CancellationToken cancellationToken = default)` [#](#member-ae54dba8c0c2cdfbb1863384)

[OneNoteSection.ImageBatchConversion.cs:55](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Imaging/OneNoteSection.ImageBatchConversion.cs#L55)

Asynchronously delivers selected images with backpressure and cooperative cancellation.

Parameters

**document OfficeIMO.OneNote.OneNoteSection 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`

<!-- PowerForge markdown artifact sha256:0A2F42E641E87067C6B355BD4F1D9735F01577215043121C0B412A1CC23D2175 -->
