removeField method
removeField()
Removes the complete form field, not just the form field special character.
removeField()
Remarks
If there is a bookmark associated with the form field, the bookmark is not removed.
Examples
Shows how to delete a form field.
let doc = new aw.Document(base.myDir + "Form fields.docx");
let formField = doc.range.formFields.at(3);
formField.removeField();
See Also
- module Aspose.Words.Fields
- class FormField