API Reference

Class

LegacyDocDocument

Namespace OfficeIMO.Word.LegacyDoc.Model
Assembly OfficeIMO.Word
Modifiers sealed

Neutral legacy binary Word document model for the supported import subset.

Inheritance

  • Object
  • LegacyDocDocument

Usage

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

Returned or exposed by

Methods

public LegacyDocImportReport CreateImportReport() #
Returns: LegacyDocImportReport

Creates a compact report from the decoded model and diagnostics.

Load 3 overloads
public static LegacyDocDocument Load(Byte[] bytes, LegacyDocImportOptions options = null) #
Returns: LegacyDocDocument

Loads a legacy DOC model from a file path.

Parameters

path System.String requiredposition: 0
options OfficeIMO.Word.LegacyDoc.LegacyDocImportOptions = null optionalposition: 1
Load(System.IO.Stream stream, OfficeIMO.Word.LegacyDoc.LegacyDocImportOptions options) #

Loads a legacy DOC model from a stream.

Parameters

stream System.IO.Stream required
options OfficeIMO.Word.LegacyDoc.LegacyDocImportOptions required
Load(System.Byte[] bytes, OfficeIMO.Word.LegacyDoc.LegacyDocImportOptions options) #

Loads a legacy DOC model from compound document bytes.

Parameters

bytes System.Byte[] required
options OfficeIMO.Word.LegacyDoc.LegacyDocImportOptions required

Properties

public String Text { get; set; } #

Gets body text decoded from the Word piece table.

public IReadOnlyList<String> Paragraphs { get; } #

Gets body paragraphs projected from Word paragraph marks.

public IReadOnlyList<LegacyDocImportDiagnostic> Diagnostics { get; } #

Gets diagnostics produced while reading the legacy document.

public IReadOnlyList<LegacyDocUnsupportedFeature> UnsupportedFeatures { get; } #

Gets unsupported or preserve-only features discovered while reading the legacy document.

public IReadOnlyList<LegacyDocPreservedFeature> PreservedFeatures { get; } #

Gets preserve-only non-compound feature metadata discovered while reading the legacy document.

public IReadOnlyList<LegacyDocCompoundFeature> CompoundFeatures { get; } #

Gets preserve-only compound storage discovered while reading the legacy document.