# DocumentController.GetFieldAdapters Method

> Gets a collection of adapters for all application fields in the specified scope.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Method
- **Introduced:** 15.0
- **Namespace:** `TXTextControl.DocumentServer`
- **Package:** `TXTextControl.TextControl.WinForms.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for Windows Forms > Reference > TXTextControl.DocumentServer > DocumentController.GetFieldAdapters Method
- **547 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver/documentcontroller/getfieldadapters-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver/documentcontroller/getfieldadapters-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver/documentcontroller/getfieldadapters-method/llms-full.txt

---

### Description

Gets a collection of adapters for all application fields in the specified scope.

### Syntax

#### GetFieldAdapters()

Gets all adapters for all application fields.

```csharp
public DocumentController.FieldAdapterCollection GetFieldAdapters();
```

```vbnet
Public Function GetFieldAdapters() As DocumentController.FieldAdapterCollection
```

#### GetFieldAdapters(Page)

Gets a collection of adapters for all application fields in the specified scope. Returns a collection of adapters for the fields located on the given page.

```csharp
public DocumentController.FieldAdapterCollection GetFieldAdapters(Page page);
```

```vbnet
Public Function GetFieldAdapters(page As Page) As DocumentController.FieldAdapterCollection
```

| Parameter | Description |
|---|---|
| page | Specifies the page for whose fields a collection of adapters is to be returned. |

### Return Value

Returns a collection of adapters for the fields located on the given page. If no page is specified, a collection of the adapters for all fields in the currently loaded document are returned.

### Examples

The following example retrieves field adapters from the document controller.

```csharp
var result = documentController.GetFieldAdapters();
Console.WriteLine($"Get Field Adapters result: {result}");
```

```vbnet
Dim result = documentController.GetFieldAdapters()
Console.WriteLine($"Get Field Adapters result: {result}")
```

---

## Nearby

- **Previous:** [DocumentController.GetBlockNames Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver/documentcontroller/getblocknames-method/llms-full.txt)
- **Next:** [DocumentController.GetFieldNames Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol-documentserver/documentcontroller/getfieldnames-method/llms-full.txt)
