Namespace DocWright.Word.Forms
Classes
- CheckBoxFormFieldOptions
How a check-box form field is made (
FORMCHECKBOX).
- DropDownFormFieldOptions
How a drop-down form field is made (
FORMDROPDOWN).
- FormField
A legacy form field — the
FORMTEXT,FORMCHECKBOXandFORMDROPDOWNfields Word wrote before content controls existed, and still writes for documents in compatibility mode.A legacy form field is a field chain whose begin character carries a
w:ffDataelement (ECMA-376 Part 1 §17.16.17). Phase 14 already parses the instruction; this type adds thew:ffDatahalf, which the reader has been preserving as an island on the begin run since Phase 1.Editing works the same way content controls do: typed properties are a view over the preserved island, and a setter splices it. An edit the rewriter cannot place with certainty throws FormFieldEditException and changes nothing.
Macros are preserved, never run. EntryMacro and ExitMacro report the names a document recorded. DocWright does not execute them and has no mechanism to.
- FormFieldDiscovery
Finds legacy form fields — the field chains whose begin character carries a
w:ffData.
- FormFieldEditException
Thrown when a legacy form field edit was refused because it could not be applied with certainty, or because the property does not apply to the field's kind.
As with content controls, the refusal is the feature: a form field's typed properties are a view over the preserved
w:ffData, and that island is what the writer emits. When this is thrown, neither the island nor the field has changed.
- FormFieldOptions
What every legacy form field states (Phase 223): its name and the behaviour of Word's Form Field Options dialog.
- TextFormFieldOptions
How a text form field is made (
FORMTEXT).
Enums
- FormFieldKind
The kind of a legacy form field, determined by the type-specific child of
w:ffData(ECMA-376 Part 1 §17.16.17).
- FormTextType
What a text form field accepts (
w:textInput/w:type).