GetBlockFieldNames Method
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.asTextControl. Core. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXDocumentServer.dll
Description
Returns the names of all merge fields inside the merge block with the specified name.
Syntax
public string[] GetBlockFieldNames(string blockName);Public Function GetBlockFieldNames(blockName As String) As String()Parameters
| Parameter | Description |
|---|---|
| blockName | Specifies the name of the block for which the field names are returned. |
Return Value
Returns an array of strings specifying the field names.
Examples
The following example retrieves block field names from the mail merge.
string[] results = mailMerge.GetBlockFieldNames("CustomerName");
foreach (string text in results)
{
Console.WriteLine(text);
}Dim results As String() = mailMerge.GetBlockFieldNames("CustomerName")
For Each text As String In results
Console.WriteLine(text)
Next