TX Text Control .NET Server

HighlightMode Property

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

Description

Gets or sets a value indicating when the editable region is highlighted.

Syntax

public HighlightMode HighlightMode { get; set; }

Members

ValueDescription
AutoDefault. The editable region is highlighted as specified through the TextControl.EditableRegionHighlightMode or WPF.TextControl.EditableRegionHighlightMode property.
ActivatedThe editable region is only highlighted, when it contains the current text input position and when the control has the input focus.
AlwaysThe editable region is always highlighted.
NeverThe editable region is never highlighted.

Examples

The following example marks selected contract text as editable by the review team by using EditableRegion.HighlightMode.

textControl.Text = "Terms subject to legal review";
textControl.Select(0, textControl.Text.Length);
EditableRegion editableRegion = new("ReviewTeam", 10);
textControl.EditableRegions.Add(editableRegion);

editableRegion.HighlightMode = HighlightMode.Never;
Console.WriteLine($"Highlight Mode used by Editable Region: {editableRegion.HighlightMode}");