DefaultHighlightColor Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Gets the default highlight color of an editable region. If the highlight color of an editable region is this default color and a user name is specified, the highlight color is set to a color depending on the user name.
Syntax
public static Color DefaultHighlightColor { get; }Public Shared ReadOnly Property DefaultHighlightColor As ColorExamples
The following example marks selected contract text as editable by the review team by using EditableRegion.DefaultHighlightColor.
textControl.Text = "Terms subject to legal review";
textControl.Select(0, textControl.Text.Length);
EditableRegion editableRegion = new("ReviewTeam", 10);
textControl.EditableRegions.Add(editableRegion);
Console.WriteLine($"Default Highlight Color: {EditableRegion.DefaultHighlightColor}");
Console.WriteLine("Editable Region is ready for use.");textControl.Text = "Terms subject to legal review"
textControl.Select(0, textControl.Text.Length)
Dim editableRegion As New EditableRegion("ReviewTeam", 10)
textControl.EditableRegions.Add(editableRegion)
Console.WriteLine($"Default Highlight Color: {EditableRegion.DefaultHighlightColor}")
Console.WriteLine("Editable Region is ready for use.")