Class FormFieldEditingExtensions
Legacy form fields inserted and removed (Phase 223): the markup Word writes for FormFields.Add (measured over
COM), each insertion and removal one undoable edit. Find, fill and change a field through FormField.
public static class FormFieldEditingExtensions
- Inheritance
-
FormFieldEditingExtensions
- Inherited Members
Fields
- MaxDropDownEntries
The most entries a drop-down holds (measured: Word refuses a 26th).
- MaxNameLength
The longest name Word keeps (measured: a longer one is cut to 20 characters; here it is refused).
Methods
- InsertCheckBoxFormField(WordDocument, DocumentPosition, CheckBoxFormFieldOptions?)
Inserts a check-box form field at a position, inside a bookmark of its name.
- InsertDropDownFormField(WordDocument, DocumentPosition, IReadOnlyList<string>, DropDownFormFieldOptions?)
Inserts a drop-down form field with its entries at a position, inside a bookmark of its name.
- InsertTextFormField(WordDocument, DocumentPosition, TextFormFieldOptions?)
Inserts a text form field at a position, splitting a text run there, inside a bookmark of its name.
- RemoveFormField(WordDocument, FormField)
Removes a form field: its field characters, code and result, and the bookmark of its name around it (where Flatten() keeps the result as text).