DefaultHighlightColor Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Shared ReadOnly Property DefaultHighlightColor As ColorExamples
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;Dim trackedChange As TrackedChange = textControl.TrackedChanges.GetItem()
If trackedChange Is Nothing Then
Return
End If
trackedChange.HighlightColor = TrackedChange.DefaultHighlightColor