GetBlockFieldNames Method
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
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);Public Function GetBlockFieldNames(block As String) As String()Parameters
| Parameter | Description |
|---|---|
| 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);
}Dim results As String() = documentController.GetBlockFieldNames("Quarterly report")
For Each text As String In results
Console.WriteLine(text)
Next