# TextField.DoubledInputPosition Property

> 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.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl > TextField.DoubledInputPosition Property
- **619 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/doubledinputposition-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/doubledinputposition-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/doubledinputposition-property/llms-full.txt

---

### 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

```csharp
public bool DoubledInputPosition { get; set; }
```

```vbnet
Public Property DoubledInputPosition As Boolean
```

### Examples

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

```csharp
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.");
}
```

```vbnet
Dim textField As TextField = New ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", New String() { "CustomerName" })
textControl.TextFields.Add(textField)

textField.DoubledInputPosition = True
If textField.DoubledInputPosition Then
    Console.WriteLine("Text Field: Doubled Input Position is enabled.")
End If
```

### See Also

Text Fields and Hypertext Links - Editing Marked Text Fields.

---

## Nearby

- **Previous:** [TextField.DoubleClickEvent Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/doubleclickevent-property/llms-full.txt)
- **Next:** [TextField.Editable Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/editable-property/llms-full.txt)
