TX Text Control .NET for Windows Forms

CreateHeaderRow Property

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

Description

If this property is true and property BlockTemplateType is set to BlockTemplateType.TableRow, a table header row is automatically generated.

Syntax

public bool CreateHeaderRow { get; set; }

Examples

The following example uses MergeBlockSettings.CreateHeaderRow to configure create header row as part of the merge block settings workflow. The configured value is checked before the workflow continues.

mergeBlockSettings.CreateHeaderRow = true;
if (mergeBlockSettings.CreateHeaderRow)
{
    Console.WriteLine("Merge Block Settings: Create Header Row is enabled.");
}