TX Text Control .NET for WPF

CommentHighlightMode Property

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

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 uses TextControl.CommentHighlightMode to configure comment highlight mode as part of the text control workflow. The configured value is checked before the workflow continues.

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