TX Text Control .NET for WPF

BlockTemplateType Property

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

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}");