TX Text Control .NET Server

HighlightColor Property

Property|Introduced in 26.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets or sets the highlight color for the tracked change. If the highlight color is TrackedChange.DefaultHighlightColor and the change has been made through an user who is not the current user, the highlight color is set to a color depending on the user name. The current user is the first string set with the TextControl.UserNames property.

Syntax

public Color HighlightColor { get; set; }

Examples

The following example highlights the current revision in a review-friendly color.

TrackedChange trackedChange = textControl.TrackedChanges.GetItem();
if (trackedChange == null)
{
    return;
}
trackedChange.HighlightColor = System.Drawing.Color.LightGoldenrodYellow;