TX Text Control .NET for Windows Forms

GetBlockNames Method

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

Description

Gets a list of the names of all the merge blocks contained in the document.

Syntax

public string[] GetBlockNames();

Return Value

A list of the name of all merge blocks contained in the document.

Examples

The following example retrieves block names from the document controller.

string[] results = documentController.GetBlockNames();
foreach (string text in results)
{
    Console.WriteLine(text);
}