# FormFieldCollection Class

> An instance of the FormFieldCollection class contains all form fields in a Text Control document represented through objects of the types TextFormField, CheckFormField and SelectionFormField. An instance of this class can only be obtained with the TextControl.FormFields property. The FormFieldCollection class implements the IEnumerable and the ICollection interface.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Inherits:** `TXTextControl.TextFieldCollectionBase`
- **Implements:** `System.Collections.ICollection`, `System.Collections.IEnumerable`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > FormFieldCollection Class
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/#members)

---

## In This Section

- [FormFieldCollection.Add Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/add-method/llms.txt): Inserts the specified form field at the current input position.
- [FormFieldCollection.Clear Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/clear-method/llms.txt): Removes all form fields from a Text Control document.
- [FormFieldCollection.ConditionalInstructions Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/conditionalinstructions-property/llms.txt): Gets a collection of all conditional instructions that references to the form fields of the collection. The property's value is an object of type ConditionalInstructionCollection.
- [FormFieldCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/copyto-method/llms.txt): Copies the elements of the collection to an array, starting at a particular index.
- [FormFieldCollection.GetItem Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/getitem-method/llms.txt): Gets a particular form field from the collection.
- [FormFieldCollection.Item Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/item-property/llms.txt): Gets the form field with the specified number from the collection. The number must be between 1 and Count. If the specified index is invalid, null is returned. In C# this property is the indexer for the FormFieldCollection class.
- [FormFieldCollection.Remove Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/remove-method/llms.txt): Removes the specified form field from a Text Control document.

---

## Nearby

- **Previous:** [FormField.FormFieldDialog Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfield/formfielddialog-method/llms.txt)
- **Next:** [FormFieldCollection.Add Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/add-method/llms.txt)
