TX Text Control .NET for WPF

Deleteable Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Specifies whether the target can be deleted by the end-user while the document is being edited. The default setting of this property is true.

Syntax

public bool Deleteable { get; set; }

Examples

The following example creates a named destination for an internal document link by using DocumentTarget.Deleteable.

DocumentTarget documentTarget = new("CustomerDetails");
textControl.DocumentTargets.Add(documentTarget);

documentTarget.Deleteable = true;
if (documentTarget.Deleteable)
{
    Console.WriteLine("Document Target: Deleteable is enabled.");
}