TX Text Control .NET for WPF

GetBlockFieldNames 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 list of the names of all the application fields which are contained inside the specified merge block.

Syntax

public string[] GetBlockFieldNames(string block);

Parameters

ParameterDescription
block

Specifies the name of the merge block whose field names are to be returned.

Return Value

A list of the fields' names contained in the specified merge block.

Examples

The following example retrieves block field names from the document controller.

string[] results = documentController.GetBlockFieldNames("Quarterly report");
foreach (string text in results)
{
    Console.WriteLine(text);
}