FormFieldRemoveField Method

Removes the complete form field, not just the form field special character.

Namespace:  Aspose.Words.Fields
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public void RemoveField()
Remarks
If there is a bookmark associated with the form field, the bookmark is not removed.
Examples
Shows how to delete complete form field.
Document doc = new Document(MyDir + "Form fields.docx");

FormField formField = doc.Range.FormFields[3];
formField.RemoveField();
See Also