CommentHighlightMode Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Gets or sets a value indicating whether all the commented texts in the document are highlighted.
Syntax
public HighlightMode CommentHighlightMode { get; set; }Public Property CommentHighlightMode As HighlightModeMembers
| Value | Description |
|---|---|
| Activated | Default. A commented text is highlighted when it contains the text input position. |
| Always | All commented texts are highlighted. |
| Never | No commented text is highlighted. |
| Auto | This 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}");textControl.CommentHighlightMode = HighlightMode.Never
Console.WriteLine($"Comment Highlight Mode used by Text Control: {textControl.CommentHighlightMode}")