EditableRegionHighlightMode 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 editable regions in the document are highlighted. The value of this property is only used if the highlight mode of a certain editable region is set to HighlightMode.Auto.
Syntax
public HighlightMode EditableRegionHighlightMode { get; set; }Public Property EditableRegionHighlightMode As HighlightModeMembers
| Value | Description |
|---|---|
| Activated | Default. An editable region is highlighted when it contains the text input position. |
| Always | All editable regions are highlighted. |
| Never | No editable region is highlighted. |
| Auto | This value cannot be used for this property. |
Examples
The following example uses TextControl.EditableRegionHighlightMode to configure editable region highlight mode as part of the text control workflow. The configured value is checked before the workflow continues.
textControl.EditableRegionHighlightMode = HighlightMode.Never;
Console.WriteLine($"Editable Region Highlight Mode used by Text Control: {textControl.EditableRegionHighlightMode}");textControl.EditableRegionHighlightMode = HighlightMode.Never
Console.WriteLine($"Editable Region Highlight Mode used by Text Control: {textControl.EditableRegionHighlightMode}")