FormFieldCollection

FormFieldCollection

Overview

FormFieldCollection is a class in Aspose.Words FOSS for Java. Inherits from: Iterable<FormField>.

A collection of FormField objects that represent all the form fields in a range.

Edition status of its 7 listed members (a property and its accessor methods are listed separately, overloads once): 7 not yet exercised by a verified example.

This class declares 7 methods for FormFieldCollection objects in Java programs. Available methods include: clear, get, getCount, iterator, remove, removeAt. Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package. Properties: count.

Properties

NameTypeAccessDescription
countintReadReturns the number of form fields in the collection.

Methods

SignatureDescription
getCount() → intReturns the number of form fields in the collection.
get(index: int) → FormFieldReturns a form field at the specified index.
get(bookmarkName: String) → FormFieldReturns a form field by bookmark name.
remove(formField: String)Removes a form field with the specified name.
removeAt(index: int)Removes a form field at the specified index.
clear()Removes all form fields from this collection and from the document.
iterator() → Iterator<FormField>Returns an enumerator object.

See Also