FormFieldCollection Class
A collection of FormField objects that represent all the form fields in a range.
Inheritance Hierarchy
SystemObject
  Aspose.Words.FieldsFormFieldCollection

Namespace: Aspose.Words.Fields
Assembly: Aspose.Words (in Aspose.Words.dll) Version: 19.11
Syntax
public class FormFieldCollection : IEnumerable<FormField>, 
	IEnumerable

The FormFieldCollection type exposes the following members.

Properties
Methods
  NameDescription
Public methodCode exampleClear
Removes all form fields from this collection and from the document.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodCode exampleGetEnumerator
Returns an enumerator object.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodCode exampleRemove
Removes a form field with the specified name.
Public methodCode exampleRemoveAt
Removes a form field at the specified index.
Public methodToString (Inherited from Object.)
Examples
Shows how to get a collection of form fields.
Document doc = new Document(MyDir + "FormFields.doc");
FormFieldCollection formFields = doc.Range.FormFields;
See Also