FieldCollection

FieldCollection

Overview

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

A collection of Field objects that represents the fields in the specified 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 6 methods for FieldCollection 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 the fields in the collection.

Methods

SignatureDescription
getCount() → intReturns the number of the fields in the collection.
get(index: int) → FieldReturns a field at the specified index.
remove(field: Field)Removes the specified field from this collection and from the document.
removeAt(index: int)Removes a field at the specified index from this collection and from the document.
clear()Removes all fields of this collection from the document and from this collection itself.
iterator() → Iterator<Field>Returns an enumerator object.

See Also