TX Text Control .NET for Windows Forms

DefaultHighlightColor Property

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

Description

Gets the default highlight color of a tracked change. This color is used for changes made through the current user. The current user is the first string set with the TextControl.UserNames property. This color is also used for changes made through an unknown user.

Syntax

public static Color DefaultHighlightColor { get; }

Examples

The following example applies the default revision color to the current tracked change.

TrackedChange trackedChange = textControl.TrackedChanges.GetItem();
if (trackedChange == null)
{
    return;
}
trackedChange.HighlightColor = TrackedChange.DefaultHighlightColor;