GetFieldAdapters Method
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets a collection of adapters for all application fields in the specified scope.
Syntax
GetFieldAdapters()
Gets all adapters for all application fields.
public DocumentController.FieldAdapterCollection GetFieldAdapters();Public Function GetFieldAdapters() As DocumentController.FieldAdapterCollectionGetFieldAdapters(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.
public DocumentController.FieldAdapterCollection GetFieldAdapters(Page page);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.
var result = documentController.GetFieldAdapters();
Console.WriteLine($"Get Field Adapters result: {result}");Dim result = documentController.GetFieldAdapters()
Console.WriteLine($"Get Field Adapters result: {result}")