Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordLoadOptions

OfficeIMO.Word

Namespace
OfficeIMO.Word
Assembly
OfficeIMO.Word
Source revision
273d35d5ba8a with working tree changes
Base
DocumentLoadOptions
Modifiers
sealed

Controls access, persistence, and package behavior when loading a Word document.

Inheritance

  • DocumentLoadOptions
  • WordLoadOptions

Usage

Explore 3 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 1

Accepted by parameters 2

Constructors

public WordLoadOptions() #

Properties

public static WordLoadOptions UntrustedDefaults { get; } #

Creates bounded options that reject active, embedded, and externally linked package content.

public long MaxInputBytes { get; set; } #

Maximum number of source bytes accepted before Word package parsing begins.

public bool AllowLegacyProjection { get; set; } #

Allows native binary DOC projection into an Open XML model. Default: true. False rejects that source family before picture projection, including mislabeled input.

public bool OverrideStyles { get; set; } #

Replaces existing styles with OfficeIMO defaults when the document is editable.

public OfficeOpenXmlLoadSettings? OpenSettings { get; set; } #

Provides optional low-level Open XML package settings.

public bool FailOnLoss { get; set; } #

Rejects reported loss when a native Word source is projected into the editable model.

public string? Password { get; set; } #

Password for an encrypted Office source.

public int MaxLegacyInputBytes { get; set; } #

Maximum binary DOC stream size accepted by the native decoder.

public int MaxDecodedImageBytes { get; set; } #

Maximum aggregate decoded legacy image bytes.

public int MaxDecodedCharacters { get; set; } #

Maximum legacy text characters decoded from the piece table.

public int MaxParagraphPropertyWorkBytes { get; set; } #

Maximum legacy paragraph-property traversal work, in bytes.

public int MaxDataPropertyChainLength { get; set; } #

Maximum legacy Data records followed by one paragraph-property chain.

public bool ReportUnsupportedContent { get; set; } #

Reports recognized unsupported content during legacy projection.

Fields

public const long DefaultMaxInputBytes #

Default maximum complete source size (512 MiB).

Value: 536870912