HighlightMode Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets a value indicating how the text of the table of contents is highlighted.
Syntax
public HighlightMode HighlightMode { get; set; }Public Property HighlightMode As HighlightModeMembers
| Value | Description |
|---|---|
| Auto | This value is not used for tables of contents. |
| Activated | The table of contents is only highlighted, when it contains the current text input position and when the control has the input focus. |
| Always | The table of contents is always highlighted. |
| Never | The table of contents is never highlighted. |
Examples
The following example creates a table of contents for the document's heading styles by using TableOfContents.HighlightMode.
TableOfContents tableOfContents = new(1, 3) { Name = "Contents", ID = 10 };
textControl.TablesOfContents.Add(tableOfContents);
tableOfContents.HighlightMode = HighlightMode.Never;
Console.WriteLine($"Highlight Mode used by Table Of Contents: {tableOfContents.HighlightMode}");Dim tableOfContents As New TableOfContents(1, 3) With { .Name = "Contents", .ID = 10 }
textControl.TablesOfContents.Add(tableOfContents)
tableOfContents.HighlightMode = HighlightMode.Never
Console.WriteLine($"Highlight Mode used by Table Of Contents: {tableOfContents.HighlightMode}")