TX Text Control .NET for WPF

HighlightMode Property

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

Description

Gets or sets a value indicating whether the reference mark and the footnote mark is highlighted.

Syntax

public HighlightMode HighlightMode { get; set; }

Members

ValueDescription
AutoDefault. The marks are highlighted as specified through the FootnoteCollection.HighlightMode property.
ActivatedThe marks are highlighted when they contain the text input position.
AlwaysThe marks are always highlighted.
NeverThe marks are never highlighted.

Examples

The following example adds and configures a source note at the current input position by using Footnote.HighlightMode.

Footnote footnote = new("Source: FY 2026 annual report");
textControl.Footnotes.Add(footnote, false);

footnote.HighlightMode = HighlightMode.Never;
Console.WriteLine($"Highlight Mode used by Footnote: {footnote.HighlightMode}");