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
Syntaxpublic void RemoveField()
public:
void RemoveField()
member RemoveField : unit -> unit
Remarks
If there is a bookmark associated with the form field, the bookmark is not removed.
ExamplesShows how to delete complete form field.
Document doc = new Document(MyDir + "Form fields.docx");
FormField formField = doc.Range.FormFields[3];
formField.RemoveField();
See Also