GetBlockNames Method
- Namespace
TXTextControl.DocumentServer
- Package
TXTextControl.asTextControl. WPF. SDK TXDocumentServer.from the private NuGet feed or Text Control Offline Packagesdll
Description
Lists the names of all merge blocks contained in the currently loaded template.
Syntax
public string[] GetBlockNames();Public Function GetBlockNames() As String()Return Value
Returns a list of the blocks contained in the currently loaded template.
Examples
The following example retrieves block names from the mail merge.
string[] results = mailMerge.GetBlockNames();
foreach (string text in results)
{
Console.WriteLine(text);
}Dim results As String() = mailMerge.GetBlockNames()
For Each text As String In results
Console.WriteLine(text)
Next