IsTrackChangesEnabled Property
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK 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; }Public Property IsTrackChangesEnabled As BooleanExamples
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.");
}Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection
textViewGenerator.IsTrackChangesEnabled = True
If textViewGenerator.IsTrackChangesEnabled Then
Console.WriteLine("Text View Generator: Is Track Changes Enabled is enabled.")
End If