# OneNotePage

A OneNote page, including subpage level, content, revisions, and conflict metadata.

Class 

`OfficeIMO.OneNote`

**Namespace**

`OfficeIMO.OneNote`

**Assembly**

`OfficeIMO.OneNote`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[OneNotePage.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L7)

**Modifiers**

sealed

A OneNote page, including subpage level, content, revisions, and conflict metadata.

## Inheritance

- object
- OneNotePage

## 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.
- [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 21 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 [OneNotePage.ConflictPages](/api/onenote/officeimo-onenote-onenotepage/#property-conflictpages)
- Property [OneNotePage.VersionHistory](/api/onenote/officeimo-onenote-onenotepage/#property-versionhistory)
- Property [OneNotePageReference.Page](/api/onenote/officeimo-onenote-onenotepagereference/#property-page)
- Method [OneNoteSection.LoadPageRevision](/api/onenote/officeimo-onenote-onenotesection/#method-loadpagerevision-officeimo-onenote-onenotepage-officeimo-onenote-onenoterevision)
- Property [OneNoteSection.Pages](/api/onenote/officeimo-onenote-onenotesection/#property-pages)

### Accepted by parameters 16

- Method [OneNoteImageExportExtensions.SaveAsImage](/api/onenote/officeimo-onenote-onenoteimageexportextensions/#method-saveasimage-officeimo-onenote-onenotepage-string-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `document`
- Method [OneNoteImageExportExtensions.SaveAsImageAsync](/api/onenote/officeimo-onenote-onenoteimageexportextensions/#method-saveasimageasync-officeimo-onenote-onenotepage-string-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `document`
- Method [OneNoteImageExportExtensions.ToDrawing](/api/onenote/officeimo-onenote-onenoteimageexportextensions/#method-todrawing-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions) parameter `page`
- Method [OneNoteImageExportExtensions.ToImage](/api/onenote/officeimo-onenote-onenoteimageexportextensions/#method-toimage-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `document`
- Method [OneNoteImageExportExtensions.ToImage](/api/onenote/officeimo-onenote-onenoteimageexportextensions/#method-toimage-officeimo-onenote-onenotepage-officeimo-drawing-officeimageexportformat-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `page`
- Method [OneNoteImageExportExtensions.ToImageAsync](/api/onenote/officeimo-onenote-onenoteimageexportextensions/#method-toimageasync-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `document`
- Extension method [OneNotePage.SaveAsImage](/api/onenote/officeimo-onenote-onenotepage/#extension-saveasimage-officeimo-onenote-onenotepage-io-stream-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `document`
- Extension method [OneNotePage.SaveAsImageAsync](/api/onenote/officeimo-onenote-onenotepage/#extension-saveasimageasync-officeimo-onenote-onenotepage-io-stream-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `document`
- Extension method [OneNotePage.ToDrawing](/api/onenote/officeimo-onenote-onenotepage/#extension-todrawing-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions) parameter `page`
- Extension method [OneNotePage.ToImage](/api/onenote/officeimo-onenote-onenotepage/#extension-toimage-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions-officeimo-officeconversionreport-threading-cancellationtoken) parameter `document`
- Extension method [OneNotePage.ToImage](/api/onenote/officeimo-onenote-onenotepage/#extension-toimage-officeimo-onenote-onenotepage-officeimo-drawing-officeimageexportformat-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `page`
- Extension method [OneNotePage.ToImageAsync](/api/onenote/officeimo-onenote-onenotepage/#extension-toimageasync-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken) parameter `document`
- Method [OneNotePageRenderer.CreateSnapshot](/api/onenote/officeimo-onenote-onenotepagerenderer/#method-createsnapshot-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions) parameter `page`
- Method [OneNotePageRenderer.Render](/api/onenote/officeimo-onenote-onenotepagerenderer/#method-render-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions) parameter `page`
- Method [OneNoteSection.GetPageRevisions](/api/onenote/officeimo-onenote-onenotesection/#method-getpagerevisions-officeimo-onenote-onenotepage) parameter `page`
- Method [OneNoteSection.LoadPageRevision](/api/onenote/officeimo-onenote-onenotesection/#method-loadpagerevision-officeimo-onenote-onenotepage-officeimo-onenote-onenoterevision) parameter `page`

Filter members 

Show inherited

## Constructors

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

[OneNotePage.cs:7](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L7)

## 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 OneNoteExtendedGuid? Id { get; set; }` [#](#property-id)

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

Page object-space identity when available. Serialization assigns and retains an identity for a new page.

`public OneNoteExtendedGuid? RevisionContextId { get; set; }` [#](#property-revisioncontextid)

[OneNotePage.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L13)

Revision context identity for a historical page snapshot. Serialization assigns it when needed.

`public string Title { get; set; }` [#](#property-title)

[OneNotePage.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L16)

Page title.

`public int Level { get; set; }` [#](#property-level)

[OneNotePage.cs:19](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L19)

Zero-based subpage nesting level.

`public DateTime? CreatedUtc { get; set; }` [#](#property-createdutc)

[OneNotePage.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L22)

Page creation time.

`public DateTime? LastModifiedUtc { get; set; }` [#](#property-lastmodifiedutc)

[OneNotePage.cs:25](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L25)

Most recent page modification time.

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

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

Original author.

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

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

Most recent author.

`public bool IsConflictPage { get; set; }` [#](#property-isconflictpage)

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

Whether this is a conflict page.

`public bool IsVersionHistoryPage { get; set; }` [#](#property-isversionhistorypage)

[OneNotePage.cs:37](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L37)

Whether this is a version-history page.

`public bool IsDeleted { get; set; }` [#](#property-isdeleted)

[OneNotePage.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L40)

Whether the page is marked as deleted content.

`public double? Width { get; set; }` [#](#property-width)

[OneNotePage.cs:43](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L43)

Optional width in OneNote half-inch layout units.

`public double? Height { get; set; }` [#](#property-height)

[OneNotePage.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L46)

Optional height in OneNote half-inch layout units.

`public OneNotePageSize? PageSize { get; set; }` [#](#property-pagesize)

[OneNotePage.cs:49](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L49)

Named native page size, or automatic sizing when absent.

`public OneNotePageOrientation? Orientation { get; set; }` [#](#property-orientation)

[OneNotePage.cs:52](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L52)

Native page orientation.

`public OneNotePageMargins Margins { get; }` [#](#property-margins)

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

Page margins and their layout origins, in half-inch units.

`public bool? RightToLeft { get; set; }` [#](#property-righttoleft)

[OneNotePage.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L58)

Whether the page uses right-to-left root layout.

`public bool? IsReadOnly { get; set; }` [#](#property-isreadonly)

[OneNotePage.cs:61](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L61)

Whether the page is marked read-only.

`public bool? ResolveChildCollisions { get; set; }` [#](#property-resolvechildcollisions)

[OneNotePage.cs:64](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L64)

Whether OneNote resolves collisions between freely positioned outlines.

`public IList<OneNoteOutline> Outlines { get; }` [#](#property-outlines)

[OneNotePage.cs:67](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L67)

Page-level outlines in source order.

`public IList<OneNoteElement> DirectContent { get; }` [#](#property-directcontent)

[OneNotePage.cs:70](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L70)

Content placed directly on the page outside outlines.

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

[OneNotePage.cs:73](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L73)

Conflict pages associated with this page.

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

[OneNotePage.cs:76](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L76)

Version-history snapshots associated with this page.

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

[OneNotePage.cs:79](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L79)

Revision metadata associated with the page object space.

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

[OneNotePage.cs:82](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L82)

Opaque page objects preserved for loss-aware writing.

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

[OneNotePage.cs:85](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Model/OneNotePage.cs#L85)

Diagnostics produced while loading the page.

## Extension Methods

SaveAsImage 2 overloads

`public static OfficeConversionReport SaveAsImage(OneNotePage document, string path, OneNotePageRenderingOptions? options = null, CancellationToken cancellationToken = default)` [#](#extension-saveasimage-officeimo-onenote-onenotepage-string-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken)

[OneNotePage.ImageConversion.cs:36](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Imaging/OneNotePage.ImageConversion.cs#L36)

Writes the selected page to a file and returns its fidelity report.

Parameters

**document OfficeIMO.OneNote.OneNotePage required**

**path string required**

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

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

Returns

`OfficeConversionReport`

`public static OfficeConversionReport SaveAsImage(OneNotePage document, Stream stream, OneNotePageRenderingOptions? options = null, CancellationToken cancellationToken = default)` [#](#extension-saveasimage-officeimo-onenote-onenotepage-io-stream-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken)

[OneNotePage.ImageConversion.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Imaging/OneNotePage.ImageConversion.cs#L46)

Writes the selected page to a caller-owned stream and returns its fidelity report.

Parameters

**document OfficeIMO.OneNote.OneNotePage required**

**stream System.IO.Stream required**

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

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

Returns

`OfficeConversionReport`

SaveAsImageAsync 2 overloads

`public static async Task<OfficeConversionReport> SaveAsImageAsync(OneNotePage document, string path, OneNotePageRenderingOptions? options = null, CancellationToken cancellationToken = default)` [#](#extension-saveasimageasync-officeimo-onenote-onenotepage-string-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken)

Asynchronously writes the selected page to a file and returns its fidelity report.

Parameters

**document OfficeIMO.OneNote.OneNotePage required**

**path string required**

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

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

Returns

`Task<OfficeConversionReport>`

`public static async Task<OfficeConversionReport> SaveAsImageAsync(OneNotePage document, Stream stream, OneNotePageRenderingOptions? options = null, CancellationToken cancellationToken = default)` [#](#extension-saveasimageasync-officeimo-onenote-onenotepage-io-stream-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken)

Asynchronously writes the selected page to a caller-owned stream and returns its fidelity report.

Parameters

**document OfficeIMO.OneNote.OneNotePage required**

**stream System.IO.Stream required**

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

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

Returns

`Task<OfficeConversionReport>`

`public static OfficeDrawing ToDrawing(OneNotePage page, OneNotePageRenderingOptions? options = null)` [#](#extension-todrawing-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions)

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

Creates the reusable Drawing scene for a page.

Parameters

**page OfficeIMO.OneNote.OneNotePage required**

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

Returns

`OfficeDrawing`

ToImage 3 overloads

`public static OfficeImageExportResult ToImage(OneNotePage page, OfficeImageExportFormat format, OneNotePageRenderingOptions? options = null, CancellationToken cancellationToken = default)` [#](#extension-toimage-officeimo-onenote-onenotepage-officeimo-drawing-officeimageexportformat-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken)

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

Exports a page using the shared five-format result contract.

Parameters

**page OfficeIMO.OneNote.OneNotePage required**

**format OfficeIMO.Drawing.OfficeImageExportFormat required**

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

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

Returns

`OfficeImageExportResult`

`public static OfficeImageExportResult ToImage(OneNotePage document, OneNotePageRenderingOptions? options = null, CancellationToken cancellationToken = default)` [#](#extension-toimage-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken)

[OneNotePage.ImageConversion.cs:9](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Imaging/OneNotePage.ImageConversion.cs#L9)

Renders the selected page using the encoding in OfficeImageExportOptions.Format.

Parameters

**document OfficeIMO.OneNote.OneNotePage required**

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

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

Returns

`OfficeImageExportResult`

`public static OfficeImageExportResult ToImage(OneNotePage document, OneNotePageRenderingOptions? options, out OfficeConversionReport report, CancellationToken cancellationToken = default)` [#](#extension-toimage-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions-officeimo-officeconversionreport-threading-cancellationtoken)

[OneNotePage.ImageConversion.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.OneNote/Imaging/OneNotePage.ImageConversion.cs#L14)

Renders the selected page and returns its immutable fidelity report.

Parameters

**document OfficeIMO.OneNote.OneNotePage required**

**options OfficeIMO.OneNote.OneNotePageRenderingOptions? required**

**report OfficeIMO.OfficeConversionReport required**

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

Returns

`OfficeImageExportResult`

`public static async Task<OfficeImageExportResult> ToImageAsync(OneNotePage document, OneNotePageRenderingOptions? options = null, CancellationToken cancellationToken = default)` [#](#extension-toimageasync-officeimo-onenote-onenotepage-officeimo-onenote-onenotepagerenderingoptions-threading-cancellationtoken)

Renders the selected page with cancellation and returns the encoded image and its diagnostics.

Parameters

**document OfficeIMO.OneNote.OneNotePage required**

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

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

Returns

`Task<OfficeImageExportResult>`

<!-- PowerForge markdown artifact sha256:894D21B4D361445323F9759FEA1945BC2F5CCC23738551DA9EDA64B091EFD905 -->
