TX Text Control .NET Server

Cancel Property

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

Description

Gets or sets a value indicating whether the change of the document should be performed. If the property value is true, which is the default value, the operation is canceled. If the property value is false, the document is changed.

Syntax

public bool Cancel { get; set; }

Examples

The following example uses CannotTrackChangeEventArgs.Cancel while handling CannotTrackChange.

textControl.CannotTrackChange += (_, e) =>
{
    e.Cancel = true;
};