FormFieldCollection
Leave feedback
On this page
Inheritance: java.lang.Object
All Implemented Interfaces: java.lang.Iterable
public final class FormFieldCollection implements Iterable<IFormField>
Represents a collection of form fields.
| Constructor | Description |
|---|---|
| FormFieldCollection() | Initializes a new instance of the FormFieldCollection class. |
| Method | Description |
|---|---|
| iterator() | Returns an enumerator that iterates through the collection. |
| insert(IFormField field) | Inserts a form field into the collection. |
| get(String name) | Gets the form field with the specified name. |
| Gets the form field with the specified name and type. |
public FormFieldCollection()
Initializes a new instance of the FormFieldCollection class.
public Iterator<IFormField> iterator()
Returns an enumerator that iterates through the collection.
Returns: java.util.Iterator<com.groupdocs.editor.words.fieldmanagement.IFormField> - An enumerator that can be used to iterate through the collection.
public void insert(IFormField field)
Inserts a form field into the collection.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| field | IFormField | The form field to insert. |
public IFormField get(String name)
Gets the form field with the specified name.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | The name of the form field. |
Returns: IFormField - The form field with the specified name, if found; otherwise, null .
public T <T>getFormField(String name, Class<T> type)
Gets the form field with the specified name and type.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| name | java.lang.String | The name of the form field. |
T : The type of the form field. |
| type | java.lang.Class
Returns: T - The form field with the specified name and type, if found; otherwise, the default value for the type.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.