HighlightMode Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK 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; }Public Property HighlightMode As HighlightModeMembers
| Value | Description |
|---|---|
| Activated | A footnote number is highlighted when it contains the text input position. |
| Always | All footnote numbers are highlighted. |
| Never | Default. No footnote number is highlighted. |
| Auto | This 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}");textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim footnoteCollection As FootnoteCollection = textControl.Footnotes
footnoteCollection.Add(New Footnote("Source: FY 2026 annual report") With { .ID = 100 }, False)
footnoteCollection.HighlightMode = HighlightMode.Never
Console.WriteLine($"Highlight Mode used by Footnote Collection: {footnoteCollection.HighlightMode}")