TX Text Control .NET Server

HighlightMode Property

Property|Introduced in 32.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 whether all the footnote numbers, reference marks as well as footnote marks, in the document are highlighted.

Syntax

public HighlightMode HighlightMode { get; set; }

Members

ValueDescription
ActivatedA footnote number is highlighted when it contains the text input position.
AlwaysAll footnote numbers are highlighted.
NeverDefault. No footnote number is highlighted.
AutoThis value cannot be used for this property.

Examples

The following example works with footnotes in the current document by using FootnoteCollection.HighlightMode.

textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
FootnoteCollection footnoteCollection = textControl.Footnotes;
footnoteCollection.Add(new Footnote("Source: FY 2026 annual report") { ID = 100 }, false);

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