API Reference

Class

OneNoteWriterOptions

Namespace OfficeIMO.OneNote
Assembly OfficeIMO.OneNote
Modifiers sealed

Controls native offline OneNote serialization.

Inheritance

  • Object
  • OneNoteWriterOptions

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

Properties

public OneNoteStorageFormat StorageFormat { get; set; } #

Physical encoding for generated .one and .onetoc2 payloads. Unknown preserves a loaded artifact's source encoding and defaults new artifacts to RevisionStore.

public Int64 MaxOutputBytes { get; set; } #

Maximum serialized output size. The default is 512 MiB.

public Int32 MaxInkPathValues { get; set; } #

Maximum coordinate and pressure values written for one native ink path.

public Boolean ValidateRoundTrip { get; set; } #

Reads the generated artifact back and verifies page identity, order, relationships, structural content, rich-text runs, supported layout/media metadata, and binary payload resolution state before returning it.

public Int32 MaxPackageEntries { get; set; } #

Maximum number of files emitted into a notebook directory or .onepkg archive.

public Int32 MaxSectionGroupDepth { get; set; } #

Maximum nesting depth for notebook section groups. Values must be from 1 through MaximumTraversalDepth.

public Int32 MaxPageRelationshipDepth { get; set; } #

Maximum nesting depth across conflict and version-history page relationships. Values must be from 1 through MaximumTraversalDepth.

public Int32 MaxContentDepth { get; set; } #

Maximum recursive nesting depth for outlines, paragraphs, and table-cell content. Values must be from 1 through MaximumTraversalDepth.

public Boolean PreserveUnknownData { get; set; } #

Preserves source objects, properties, and relationships that are not replaced by typed edits. This is enabled by default for sections loaded by OfficeIMO.

Fields

public const Int32 MaximumTraversalDepth #

Hard maximum accepted for recursive writer traversal limits.

Value: 256
public const Int32 DefaultMaxContentDepth #

Default maximum nesting depth for serializable content elements.

Value: 128
public const Int32 DefaultMaxSectionGroupDepth #

Default maximum nesting depth for notebook section groups.

Value: 32