TX Text Control .NET Server

IsTrackChangesEnabled Property

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

Description

Gets or sets a value indicating whether track changes is active or not. When this property is true, new changes made to the document are marked up. When this property is false, a TextControl stops marking up new changes. Any changes that were already tracked remain marked up in the document until they were removed.

Syntax

public bool IsTrackChangesEnabled { get; set; }

Examples

The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.IsTrackChangesEnabled.

Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;

textViewGenerator.IsTrackChangesEnabled = true;
if (textViewGenerator.IsTrackChangesEnabled)
{
    Console.WriteLine("Text View Generator: Is Track Changes Enabled is enabled.");
}