TX Text Control .NET for Windows Forms

MergeBlockSettings Constructor

Constructor|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

Initializes a new instance of the MergeBlockSettings class.

Syntax

MergeBlockSettings()

Initializes a new instance of the MergeBlockSettings class.

public MergeBlockSettings();

MergeBlockSettings(BlockTemplateType)

Initializes a new instance of the MergeBlockSettings class.

public MergeBlockSettings(BlockTemplateType blockTemplateType);
ParameterDescription
blockTemplateType

A value of type BlockTemplateType specifying the block type. (paragraph or table row based)

MergeBlockSettings(BlockTemplateType, bool)

Initializes a new instance of the MergeBlockSettings class.

public MergeBlockSettings(BlockTemplateType blockTemplateType, bool createHeaderRow);
ParameterDescription
blockTemplateType

A value of type BlockTemplateType specifying the block type. (paragraph or table row based)

createHeaderRow

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

MergeBlockSettings(BlockTemplateType, bool, Color, FieldDisplayMode)

Initializes a new instance of the MergeBlockSettings class.

public MergeBlockSettings(BlockTemplateType blockTemplateType, bool createHeaderRow, Color highlightColor, FieldDisplayMode fieldDisplayMode);
ParameterDescription
blockTemplateType

A value of type BlockTemplateType specifying the block type. (paragraph or table row based)

createHeaderRow

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

highlightColor

The color the merge block is highlighted with if the input position is inside the block boundaries.

fieldDisplayMode

A value of type FieldDisplayMode which specifies if field text or field codes are shown.

MergeBlockSettings(BlockTemplateType, bool, short)

public MergeBlockSettings(BlockTemplateType blockTemplateType, bool createHeaderRow, short tableID);

Examples

The following example creates a Merge Block Settings instance and configures its block template type setting for a document workflow.

TXTextControl.DocumentServer.DataSources.MergeBlockSettings mergeBlockSettings = new();
mergeBlockSettings.BlockTemplateType = TXTextControl.DocumentServer.DataSources.BlockTemplateType.TableRow;