CommentHighlightMode Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. 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 change is then applied to the active document or user interface.
textControl.CommentHighlightMode = HighlightMode.Never;
textControl.Update();textControl.CommentHighlightMode = HighlightMode.Never
textControl.Update()