# TextControl.InsertionMode Property

> Specifies whether text is inserted or overwrites existing text.

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

---

### Description

Specifies whether text is inserted or overwrites existing text.

### Syntax

```csharp
public InsertionMode InsertionMode { get; set; }
```

```vbnet
Public Property InsertionMode As InsertionMode
```

### Members

| Value | Description |
|---|---|
| Insert | Text is inserted at the current text input position. |
| Overwrite | Text is overwritten at the current text input position. |

### Examples

The following example uses `TextControl.InsertionMode` to configure insertion mode as part of the text control workflow. The configured value is checked before the workflow continues.

```csharp
textControl.InsertionMode = InsertionMode.Insert;
Console.WriteLine($"Insertion Mode used by Text Control: {textControl.InsertionMode}");
```

```vbnet
textControl.InsertionMode = InsertionMode.Insert
Console.WriteLine($"Insertion Mode used by Text Control: {textControl.InsertionMode}")
```

---

## Nearby

- **Previous:** [TextControl.InputPositionChanged Event](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/inputpositionchanged-event/llms-full.txt)
- **Next:** [TextControl.IsFormFieldValidationEnabled Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-wpf/textcontrol/isformfieldvalidationenabled-property/llms-full.txt)
