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
| Name | Type | Access | Description |
|---|---|---|---|
count | int | Read | Returns the number of the fields in the collection. |
Methods
| Signature | Description |
|---|---|
getCount() → int | Returns the number of the fields in the collection. |
get(index: int) → Field | Returns 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. |