FieldCollection
Overview
FieldCollection is a class in Aspose.Words FOSS for .NET.
Inherits from: IEnumerable<Field>.
A collection of Field objects that represents the fields in the specified range.
This class provides 4 methods for working with FieldCollection objects in .NET programs.
Available methods include: Clear, GetEnumerator, Remove, RemoveAt.
All public members are accessible to any .NET application after installing the Aspose.Words FOSS for .NET package.
Properties: Count.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
Count | int | Read | Returns the number of the fields in the collection. |
Methods
| Signature | Description |
|---|---|
Remove(field: Field) | Calls Remove(field) on this FieldCollection instance. |
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. |
GetEnumerator() | Returns an enumerator object. |