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 for the commented text. This color is used when the commentator is unknown. When the commentator is the current user, the highlight color is red.
Syntax
public static Color DefaultHighlightColor { get; }Public Shared ReadOnly Property DefaultHighlightColor As ColorExamples
The following example attaches a reviewer comment to selected contract text by using CommentedText.DefaultHighlightColor.
textControl.Text = "Payment is due within 30 days.";
textControl.Select(0, textControl.Text.Length);
CommentedText commentedText = new("Verify the payment term.");
textControl.Comments.Add(commentedText);
Console.WriteLine($"Default Highlight Color: {CommentedText.DefaultHighlightColor}");
Console.WriteLine("Commented Text is ready for use.");textControl.Text = "Payment is due within 30 days."
textControl.Select(0, textControl.Text.Length)
Dim commentedText As New CommentedText("Verify the payment term.")
textControl.Comments.Add(commentedText)
Console.WriteLine($"Default Highlight Color: {CommentedText.DefaultHighlightColor}")
Console.WriteLine("Commented Text is ready for use.")