Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

OneNotePage

OfficeIMO.OneNote

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

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

Inheritance

  • object
  • OneNotePage

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.

Accepted by parameters 16

Constructors

public OneNotePage() #

Properties

public OneNoteExtendedGuid? Id { get; set; } #

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

public OneNoteExtendedGuid? RevisionContextId { get; set; } #

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

public string Title { get; set; } #

Page title.

public int Level { get; set; } #

Zero-based subpage nesting level.

public DateTime? CreatedUtc { get; set; } #

Page creation time.

public DateTime? LastModifiedUtc { get; set; } #

Most recent page modification time.

public string? OriginalAuthor { get; set; } #

Original author.

public string? MostRecentAuthor { get; set; } #

Most recent author.

public bool IsConflictPage { get; set; } #

Whether this is a conflict page.

public bool IsVersionHistoryPage { get; set; } #

Whether this is a version-history page.

public bool IsDeleted { get; set; } #

Whether the page is marked as deleted content.

public double? Width { get; set; } #

Optional width in OneNote half-inch layout units.

public double? Height { get; set; } #

Optional height in OneNote half-inch layout units.

public OneNotePageSize? PageSize { get; set; } #

Named native page size, or automatic sizing when absent.

public OneNotePageOrientation? Orientation { get; set; } #

Native page orientation.

public OneNotePageMargins Margins { get; } #

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

public bool? RightToLeft { get; set; } #

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

public bool? IsReadOnly { get; set; } #

Whether the page is marked read-only.

public bool? ResolveChildCollisions { get; set; } #

Whether OneNote resolves collisions between freely positioned outlines.

public IList<OneNoteOutline> Outlines { get; } #

Page-level outlines in source order.

public IList<OneNoteElement> DirectContent { get; } #

Content placed directly on the page outside outlines.

public IList<OneNotePage> ConflictPages { get; } #

Conflict pages associated with this page.

public IList<OneNotePage> VersionHistory { get; } #

Version-history snapshots associated with this page.

public IList<OneNoteRevision> Revisions { get; } #

Revision metadata associated with the page object space.

public IList<OneNoteOpaqueObject> UnknownObjects { get; } #

Opaque page objects preserved for loss-aware writing.

public IList<OneNoteDiagnostic> Diagnostics { get; } #

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

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

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

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

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

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

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

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

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

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>