TX Text Control .NET Server

CommentHighlightMode Property

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

Description

Gets or sets a value indicating whether all the commented texts in the document are highlighted.

Syntax

public HighlightMode CommentHighlightMode { get; set; }

Members

ValueDescription
ActivatedDefault. A commented text is highlighted when it contains the text input position.
AlwaysAll commented texts are highlighted.
NeverNo commented text is highlighted.
AutoThis value cannot be used for this property.

Examples

The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.CommentHighlightMode.

Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;

textViewGenerator.CommentHighlightMode = HighlightMode.Never;
Console.WriteLine($"Comment Highlight Mode used by Text View Generator: {textViewGenerator.CommentHighlightMode}");