TX Text Control .NET for WPF

GetFieldAdapters Method

Method|Introduced in 15.0
Namespace
TXTextControl.DocumentServer
Package
TXTextControl.TextControl.WPF.SDK as TXDocumentServer.dll from the private NuGet feed or Text Control Offline Packages

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();

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.

public DocumentController.FieldAdapterCollection GetFieldAdapters(Page page);
ParameterDescription
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}");