WordLoadOptions
OfficeIMO.Word
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
- Property WordLoadOptions.UntrustedDefaults
Accepted by parameters 2
- Method WordDocument.Load
- Method WordDocument.LoadAsync
Constructors
public WordLoadOptions() #Inherited Methods
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.
Inherited Properties
public DocumentAccessMode AccessMode { get; set; } #public OfficePackageSecurityOptions? PackageSecurity { get; set; } #public bool CaptureSourcePackageSecurity { get; set; } #public DocumentPersistenceMode PersistenceMode { get; set; } #Fields
public const long DefaultMaxInputBytes #Default maximum complete source size (512 MiB).
536870912