RemoveField
FormField.RemoveField method
Removes the complete form field, not just the form field special character.
public void 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.
Document doc = new Document(MyDir + "Form fields.docx");
FormField formField = doc.Range.FormFields[3];
formField.RemoveField();
See Also
- class FormField
- namespace Aspose.Words.Fields
- assembly Aspose.Words