Table of Contents

Method FindFormFieldsEverywhere

Namespace
DocWright.Dom.Forms
Assembly
DocWright.Dom.dll

FindFormFieldsEverywhere(WordDocument)

Finds every legacy form field in the document body, its headers and footers, and its notes.

public static IReadOnlyList<FormField> FindFormFieldsEverywhere(this WordDocument document)

Parameters

document WordDocument

The document.

Returns

IReadOnlyList<FormField>

The form fields found, body first.

Remarks

Equivalent to FindFormFields(DomNode) on the same document, and kept because it names the guarantee a form-filling pass depends on: a field in a letterhead header is included. It inherited the duplication FindFieldsEverywhere(WordDocument) carried, which mattered more here than anywhere else — Flatten() over a duplicated result acted on the same field twice.

Exceptions

ArgumentNullException

document is null.