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 a text field can be deleted by the end-user while a TX Text Control document is being edited. The default setting of this property is true.

Syntax

public bool Deleteable { get; set; }

Examples

The following example inserts a Word-compatible text field into a template by using TextField.Deleteable.

TextField textField = new ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", new[] { "CustomerName" });
textControl.TextFields.Add(textField);

textField.Deleteable = true;
if (textField.Deleteable)
{
    Console.WriteLine("Text Field: Deleteable is enabled.");
}

See Also

Text Fields and Hypertext Links - Editing Marked Text Fields.