# WordDocumentReaderExtensions

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

Class 

`OfficeIMO.Reader.Word`

**Namespace**

`OfficeIMO.Reader.Word`

**Assembly**

`OfficeIMO.Reader.Word`

**Source revision**

`273d35d5ba8a` with working tree changes

**Source**

[WordDocumentReaderExtensions.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Reader.Word/WordDocumentReaderExtensions.cs#L16)

**Modifiers**

static

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

## Inheritance

- object
- WordDocumentReaderExtensions

Filter members 

Show inherited

## Methods

`public static OfficeDocumentReadResult ReadDocument(WordDocument document, string? sourceName = null, ReaderOptions? options = null, ReaderWordOptions? formatOptions = null, CancellationToken cancellationToken = default)` [#](#method-readdocument-officeimo-word-worddocument-string-officeimo-reader-readeroptions-officeimo-reader-word-readerwordoptions-threading-cancellationtoken)

[WordDocumentReaderExtensions.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/273d35d5ba8ab8ce3f6f1238631241c0cea26d14/OfficeIMO.Reader.Word/WordDocumentReaderExtensions.cs#L16)

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`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:D091AFB67B7CC159FDD2E2BEF632A2AE4ADFDBF55AD5EA9303D45AB98EE9E2FB -->
