TX Text Control .NET for WPF

DoubledInputPosition 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 has a doubled input position in front of its first character and behind its last character. This enables an end-user to decide whether inserted text at these positions will belong to the text field or not. The default setting of this property is false. For all form fields to work properly this property is set to true and cannot be changed to false.

Syntax

public bool DoubledInputPosition { get; set; }

Examples

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

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

textField.DoubledInputPosition = true;
if (textField.DoubledInputPosition)
{
    Console.WriteLine("Text Field: Doubled Input Position is enabled.");
}

See Also

Text Fields and Hypertext Links - Editing Marked Text Fields.