java.lang.Objectcom.aspose.words.FieldCollection
public class FieldCollection
Property Getters/Setters Summary | ||
---|---|---|
int | getCount() | |
Returns the number of the fields in the collection. | ||
Field | get(int index) | |
Returns a field at the specified index. |
Method Summary | ||
---|---|---|
void | clear() | |
Removes all fields of this collection from the document and from this collection itself. | ||
java.util.Iterator | iterator() | |
Returns an enumerator object. | ||
void | remove(Field field) | |
Removes the specified field from this collection and from the document. | ||
void | removeAt(int index) | |
Removes a field at the specified index from this collection and from the document. |
Property Getters/Setters Detail |
---|
getCount | |
public int getCount() |
get | |
public Field get(int index) |
The index is zero-based.
Negative indexes are allowed and indicate access from the back of the collection. For example -1 means the last item, -2 means the second before last and so on.
If index is greater than or equal to the number of items in the list, this returns a null reference.
If index is negative and its absolute value is greater than the number of items in the list, this returns a null reference.
index
- An index into the collection.Method Detail |
---|
clear | |
public void clear() throws java.lang.Exception |
iterator | |
public java.util.Iterator iterator() |
remove | |
public void remove(Field field) throws java.lang.Exception |
field
- A field to remove.removeAt | |
public void removeAt(int index) throws java.lang.Exception |
index
- An index into the collection.