HighlightColor 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 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; }Public Property HighlightColor As ColorExamples
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;Dim trackedChange As TrackedChange = textControl.TrackedChanges.GetItem()
If trackedChange Is Nothing Then
Return
End If
trackedChange.HighlightColor = System.Drawing.Color.LightGoldenrodYellow