OneNotePage
OfficeIMO.OneNote
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.
Returned or exposed by 5
- Property OneNotePage.ConflictPages
- Property OneNotePage.VersionHistory
- Property OneNotePageReference.Page
- Method OneNoteSection.LoadPageRevision
- Property OneNoteSection.Pages
Accepted by parameters 16
- Method OneNoteImageExportExtensions.SaveAsImage
- Method OneNoteImageExportExtensions.SaveAsImageAsync
- Method OneNoteImageExportExtensions.ToDrawing
- Method OneNoteImageExportExtensions.ToImage
- Method OneNoteImageExportExtensions.ToImage
- Method OneNoteImageExportExtensions.ToImageAsync
- Extension method OneNotePage.SaveAsImage
- Extension method OneNotePage.SaveAsImageAsync
- Extension method OneNotePage.ToDrawing
- Extension method OneNotePage.ToImage
- Extension method OneNotePage.ToImage
- Extension method OneNotePage.ToImageAsync
- Method OneNotePageRenderer.CreateSnapshot
- Method OneNotePageRenderer.Render
- Method OneNoteSection.GetPageRevisions
- Method OneNoteSection.LoadPageRevision
Constructors
public OneNotePage() #Inherited Methods
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 DateTime? LastModifiedUtc { get; set; } #Most recent page modification time.
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 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? 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
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
- path string
- options OfficeIMO.OneNote.OneNotePageRenderingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeConversionReportpublic 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
- stream System.IO.Stream
- options OfficeIMO.OneNote.OneNotePageRenderingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeConversionReportpublic 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
- path string
- options OfficeIMO.OneNote.OneNotePageRenderingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
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
- stream System.IO.Stream
- options OfficeIMO.OneNote.OneNotePageRenderingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
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
- options OfficeIMO.OneNote.OneNotePageRenderingOptions? = null
Returns
OfficeDrawingpublic 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
- format OfficeIMO.Drawing.OfficeImageExportFormat
- options OfficeIMO.OneNote.OneNotePageRenderingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeImageExportResultpublic 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
- options OfficeIMO.OneNote.OneNotePageRenderingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeImageExportResultpublic 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
- options OfficeIMO.OneNote.OneNotePageRenderingOptions?
- report OfficeIMO.OfficeConversionReport
- cancellationToken System.Threading.CancellationToken = default
Returns
OfficeImageExportResultpublic 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
- options OfficeIMO.OneNote.OneNotePageRenderingOptions? = null
- cancellationToken System.Threading.CancellationToken = default
Returns
Task<OfficeImageExportResult>