Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

WordDocumentReaderExtensions

OfficeIMO.Reader.Word

Namespace
OfficeIMO.Reader.Word
Assembly
OfficeIMO.Reader.Word
Source revision
273d35d5ba8a with working tree changes
Modifiers
static

Projects caller-owned Word models through the canonical Reader adapter.

Inheritance

  • object
  • WordDocumentReaderExtensions

Methods

public static OfficeDocumentReadResult ReadDocument(WordDocument document, string? sourceName = null, ReaderOptions? options = null, ReaderWordOptions? formatOptions = null, CancellationToken cancellationToken = default) #

Reads text, structures and requested inspection evidence from an already loaded document.

Parameters

document OfficeIMO.Word.WordDocument required
Caller-owned model, which remains open after projection.
sourceName string? = null optional
Logical citation name; omitted names use document.docx. No source file is reopened.
options OfficeIMO.Reader.ReaderOptions? = null optional
Snapshotted projection and output budgets. The default projection is Full.
formatOptions OfficeIMO.Reader.Word.ReaderWordOptions? = null optional
Snapshotted Word projection policy.
cancellationToken System.Threading.CancellationToken = default optional
Cancellation for this projection.

Returns

OfficeDocumentReadResult