API Reference
LegacyDocDocument
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
- Property LegacyDocLoadResult.LegacyDocument
- Method LegacyDocDocument.Load
Methods
public LegacyDocImportReport CreateImportReport() #LegacyDocImportReportCreates a compact report from the decoded model and diagnostics.
public static LegacyDocDocument Load(Byte[] bytes, LegacyDocImportOptions options = null) #LegacyDocDocumentLoads a legacy DOC model from a file path.
Parameters
- path System.String
- options OfficeIMO.Word.LegacyDoc.LegacyDocImportOptions = null
Load(System.IO.Stream stream, OfficeIMO.Word.LegacyDoc.LegacyDocImportOptions options) #Loads a legacy DOC model from a stream.
Parameters
- stream System.IO.Stream
- options OfficeIMO.Word.LegacyDoc.LegacyDocImportOptions
Load(System.Byte[] bytes, OfficeIMO.Word.LegacyDoc.LegacyDocImportOptions options) #Loads a legacy DOC model from compound document bytes.
Parameters
- bytes System.Byte[]
- options OfficeIMO.Word.LegacyDoc.LegacyDocImportOptions
Inherited Methods
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.