TX Text Control .NET Server

HighlightColor 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

Specifies the color the inserted merge block is highlighted with if the input position is inside the block. The alpha value of the provided color is used.

Syntax

public Color HighlightColor { get; set; }

Examples

The following example uses MergeBlockSettings.HighlightColor to make the merge block settings easy to identify during editing. The configured value is checked before the workflow continues.

mergeBlockSettings.HighlightColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Highlight Color used by Merge Block Settings: {mergeBlockSettings.HighlightColor}");