TX Text Control .NET Server

BlockTemplateType Property

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

Description

Gets or sets a value of type BlockTemplateType which specifies the type of the inserted repeating block. (paragraph based or table row based)

Syntax

public BlockTemplateType BlockTemplateType { get; set; }

Examples

The following example uses MergeBlockSettings.BlockTemplateType to configure block template type as part of the merge block settings workflow. The configured value is checked before the workflow continues.

mergeBlockSettings.BlockTemplateType = TXTextControl.DocumentServer.DataSources.BlockTemplateType.TableRow;
Console.WriteLine($"Block Template Type used by Merge Block Settings: {mergeBlockSettings.BlockTemplateType}");