CommentHighlightMode Property
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK 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; }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 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}");Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection
textViewGenerator.CommentHighlightMode = HighlightMode.Never
Console.WriteLine($"Comment Highlight Mode used by Text View Generator: {textViewGenerator.CommentHighlightMode}")