# TextField.ShowActivated Property

> Obsolete. Specifies whether a text field toggles its background to gray, if the current input position is in the field. The default setting of this property is false. This property is obsolete and has been superseded by the HighlightColor and HighlightMode properties.

> **Note:** This is deprecated and should not be used in new work.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Obsolete:** the assembly marks this as obsolete
- **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.ShowActivated Property
- **635 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/showactivated-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/showactivated-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/showactivated-property/llms-full.txt

---

### Description

Obsolete. Specifies whether a text field toggles its background to gray, if the current input position is in the field. The default setting of this property is false. This property is obsolete and has been superseded by the [HighlightColor](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/highlightcolor-property/llms-full.txt) and [HighlightMode](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/highlightmode-property/llms-full.txt) properties.

### Syntax

```csharp
[Obsolete]
public bool ShowActivated { get; set; }
```

```vbnet
<Obsolete>
Public Property ShowActivated As Boolean
```

### Examples

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

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

textField.ShowActivated = true;
if (textField.ShowActivated)
{
    Console.WriteLine("Text Field: Show Activated is enabled.");
}
```

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

textField.ShowActivated = True
If textField.ShowActivated Then
    Console.WriteLine("Text Field: Show Activated is enabled.")
End If
```

### See Also

Text Fields and Hypertext Links - Editing Marked Text Fields.

---

## Nearby

- **Previous:** [TextField.ScrollTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/scrollto-method/llms-full.txt)
- **Next:** [TextField.Start Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/textfield/start-property/llms-full.txt)
